Added a message for the static_assert

This commit is contained in:
paulfd 2019-09-21 10:57:21 +02:00
parent 20c0aeb8dd
commit a456256b00

View file

@ -44,7 +44,7 @@ public:
void getBlock(absl::Span<Type> output);
private:
std::function<Type(Type)> function { [](Type input) { return input; } };
static_assert(std::is_arithmetic<Type>::value);
static_assert(std::is_arithmetic<Type>::value, "Type should be arithmetic");
std::vector<std::pair<int, Type>> events;
int maxCapacity { config::defaultSamplesPerBlock };
Type currentValue { 0.0 };