diff --git a/include/etl/message_packet.h b/include/etl/message_packet.h index a47b1e20..5c315d89 100644 --- a/include/etl/message_packet.h +++ b/include/etl/message_packet.h @@ -76,6 +76,9 @@ namespace etl private: + template + static constexpr bool IsMessagePacket = etl::is_same_v, etl::message_packet>; + template static constexpr bool IsInMessageList = etl::is_one_of_v, TMessageTypes...>; @@ -97,7 +100,7 @@ namespace etl /// or concrete message that's in TMessageTypes. //******************************************** #include "private/diagnostic_uninitialized_push.h" - template || IsInMessageList, int>::type> + template , int>::type> explicit message_packet(T&& msg) : valid(true) {