Skip to content

Commit 0f106b4

Browse files
committed
Use new form of type traits available in C++14
1 parent 34d1455 commit 0f106b4

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

include/protozero/basic_pbf_builder.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ namespace protozero {
4040
template <typename TBuffer, typename T>
4141
class basic_pbf_builder : public basic_pbf_writer<TBuffer> {
4242

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

4646
public:

include/protozero/pbf_message.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ namespace protozero {
6464
template <typename T>
6565
class pbf_message : public pbf_reader {
6666

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

7070
public:

0 commit comments

Comments
 (0)