From 48ef7e34503dc185df5f5ca3d7651ee196b7616d Mon Sep 17 00:00:00 2001 From: Bent Bisballe Nyeng Date: Tue, 18 Feb 2020 18:27:17 +0100 Subject: Add arg to static_assert --- src/events_ds.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src') 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 T& EventsDS::emplace(channel_t ch, Args&&... args) { // add new event types here - static_assert(std::is_same::value); + static_assert(std::is_same::value, "Check event type"); if (std::is_same::value) { @@ -178,7 +178,7 @@ template ContainerRange> EventsDS::iterateOver(channel_t ch) { // add new event types here - static_assert(std::is_same::value); + static_assert(std::is_same::value, "Check event type"); if (std::is_same::value) { @@ -191,7 +191,7 @@ template T& EventsDS::getSample(EventInfo const& info) { // add new event types here - static_assert(std::is_same::value); + static_assert(std::is_same::value, "Check event type"); if (std::is_same::value) { -- cgit v1.2.3