diff options
author | Bent Bisballe Nyeng <deva@aasimon.org> | 2020-02-18 18:27:17 +0100 |
---|---|---|
committer | Bent Bisballe Nyeng <deva@aasimon.org> | 2020-02-23 14:12:29 +0100 |
commit | 48ef7e34503dc185df5f5ca3d7651ee196b7616d (patch) | |
tree | 5dc3b37ea97a7f6991d8a39cc8bf9c191a1a8d65 /src/events_ds.h | |
parent | 63e5ab8fdbfac2553c79a4c3dc03039875d581c8 (diff) |
Add arg to static_assert
Diffstat (limited to 'src/events_ds.h')
-rw-r--r-- | src/events_ds.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/events_ds.h b/src/events_ds.h index 0a93fe9..5855711 100644 --- a/src/events_ds.h +++ b/src/events_ds.h @@ -147,7 +147,7 @@ template <typename T, typename... Args> T& EventsDS::emplace(channel_t ch, Args&&... args) { // add new event types here - static_assert(std::is_same<T, SampleEvent>::value); + static_assert(std::is_same<T, SampleEvent>::value, "Check event type"); if (std::is_same<T, SampleEvent>::value) { @@ -178,7 +178,7 @@ template <typename T> ContainerRange<std::vector<T>> EventsDS::iterateOver(channel_t ch) { // add new event types here - static_assert(std::is_same<T, SampleEvent>::value); + static_assert(std::is_same<T, SampleEvent>::value, "Check event type"); if (std::is_same<T, SampleEvent>::value) { @@ -191,7 +191,7 @@ template <typename T> T& EventsDS::getSample(EventInfo const& info) { // add new event types here - static_assert(std::is_same<T, SampleEvent>::value); + static_assert(std::is_same<T, SampleEvent>::value, "Check event type"); if (std::is_same<T, SampleEvent>::value) { |