summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorBent Bisballe Nyeng <deva@aasimon.org>2020-02-18 18:27:17 +0100
committerBent Bisballe Nyeng <deva@aasimon.org>2020-02-23 14:12:29 +0100
commit48ef7e34503dc185df5f5ca3d7651ee196b7616d (patch)
tree5dc3b37ea97a7f6991d8a39cc8bf9c191a1a8d65 /src
parent63e5ab8fdbfac2553c79a4c3dc03039875d581c8 (diff)
Add arg to static_assert
Diffstat (limited to 'src')
-rw-r--r--src/events_ds.h6
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)
{