From a456256b002f32a1ebca36210c357061758fcfc6 Mon Sep 17 00:00:00 2001 From: paulfd Date: Sat, 21 Sep 2019 10:57:21 +0200 Subject: [PATCH] Added a message for the static_assert --- sfizz/LinearEnvelope.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sfizz/LinearEnvelope.h b/sfizz/LinearEnvelope.h index e246629f..ae9b5927 100644 --- a/sfizz/LinearEnvelope.h +++ b/sfizz/LinearEnvelope.h @@ -44,7 +44,7 @@ public: void getBlock(absl::Span output); private: std::function function { [](Type input) { return input; } }; - static_assert(std::is_arithmetic::value); + static_assert(std::is_arithmetic::value, "Type should be arithmetic"); std::vector> events; int maxCapacity { config::defaultSamplesPerBlock }; Type currentValue { 0.0 };