Skip to content

Commit

Permalink
Use new form of type traits available in C++14
Browse files Browse the repository at this point in the history
  • Loading branch information
joto committed Dec 20, 2024
1 parent a7dab95 commit 64eb4c5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion include/protozero/basic_pbf_builder.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ namespace protozero {
template <typename TBuffer, typename T>
class basic_pbf_builder : public basic_pbf_writer<TBuffer> {

static_assert(std::is_same<pbf_tag_type, typename std::underlying_type<T>::type>::value,
static_assert(std::is_same<pbf_tag_type, std::underlying_type_t<T>>::value,
"T must be enum with underlying type protozero::pbf_tag_type");

public:
Expand Down
2 changes: 1 addition & 1 deletion include/protozero/pbf_message.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ namespace protozero {
template <typename T>
class pbf_message : public pbf_reader {

static_assert(std::is_same<pbf_tag_type, typename std::underlying_type<T>::type>::value,
static_assert(std::is_same<pbf_tag_type, std::underlying_type_t<T>>::value,
"T must be enum with underlying type protozero::pbf_tag_type");

public:
Expand Down

0 comments on commit 64eb4c5

Please sign in to comment.