Skip to content

Commit

Permalink
Update traits.h
Browse files Browse the repository at this point in the history
  • Loading branch information
prince-chrismc authored May 16, 2020
1 parent c5663f5 commit b7ed684
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions include/jwt-cpp/traits.h
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
#pragma once
#include <type_traits>

namespace jwt {
namespace json {
Expand All @@ -19,7 +20,7 @@ namespace jwt {
typename number,
typename integer,
typename boolean,
/*typename null = nullptr*/>
typename null = void>
struct traits {
using value = value;
using type = type;
Expand All @@ -29,7 +30,9 @@ namespace jwt {
using number = number;
using boolean = boolean;
using integer = integer;
// using null = null;
using null = null;

static_assert(std::is_constructible<value, object>::value);
};
}
}
Expand Down

0 comments on commit b7ed684

Please sign in to comment.