From 64eb4c5cf524a631f7023c0aea84fe3acd8c983e Mon Sep 17 00:00:00 2001 From: Jochen Topf Date: Thu, 19 Dec 2024 20:38:35 +0100 Subject: [PATCH] Use new form of type traits available in C++14 --- include/protozero/basic_pbf_builder.hpp | 2 +- include/protozero/pbf_message.hpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/include/protozero/basic_pbf_builder.hpp b/include/protozero/basic_pbf_builder.hpp index 0ede726fa..653e13db6 100644 --- a/include/protozero/basic_pbf_builder.hpp +++ b/include/protozero/basic_pbf_builder.hpp @@ -40,7 +40,7 @@ namespace protozero { template class basic_pbf_builder : public basic_pbf_writer { - static_assert(std::is_same::type>::value, + static_assert(std::is_same>::value, "T must be enum with underlying type protozero::pbf_tag_type"); public: diff --git a/include/protozero/pbf_message.hpp b/include/protozero/pbf_message.hpp index d7fd8b5d0..393078b9b 100644 --- a/include/protozero/pbf_message.hpp +++ b/include/protozero/pbf_message.hpp @@ -64,7 +64,7 @@ namespace protozero { template class pbf_message : public pbf_reader { - static_assert(std::is_same::type>::value, + static_assert(std::is_same>::value, "T must be enum with underlying type protozero::pbf_tag_type"); public: