diff --git a/src/sfizz/EventEnvelopes.h b/src/sfizz/EventEnvelopes.h index c9631014..c56d1dd6 100644 --- a/src/sfizz/EventEnvelopes.h +++ b/src/sfizz/EventEnvelopes.h @@ -94,7 +94,7 @@ protected: Type currentValue { 0.0 }; private: static_assert(std::is_arithmetic::value, "Type should be arithmetic"); - std::function function { [](Type input) { return input; } }; + std::function function { [](Type input) -> Type { return input; } }; int maxCapacity { config::defaultSamplesPerBlock }; void prepareEvents(int blockLength); bool resetEvents { false };