Magic by @jpcima to solve the clang segfault

This commit is contained in:
Paul Fd 2020-03-11 11:31:16 +01:00
parent 8ba825d3dd
commit b44b4efad3

View file

@ -94,7 +94,7 @@ protected:
Type currentValue { 0.0 };
private:
static_assert(std::is_arithmetic<Type>::value, "Type should be arithmetic");
std::function<Type(Type)> function { [](Type input) { return input; } };
std::function<Type(Type)> function { [](Type input) -> Type { return input; } };
int maxCapacity { config::defaultSamplesPerBlock };
void prepareEvents(int blockLength);
bool resetEvents { false };