Skip to content

Commit

Permalink
Create traits.h
Browse files Browse the repository at this point in the history
  • Loading branch information
prince-chrismc authored May 16, 2020
1 parent 10a86f5 commit c1cfb73
Showing 1 changed file with 35 additions and 0 deletions.
35 changes: 35 additions & 0 deletions include/jwt-cpp/traits.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
#pragma once

namespace jwt {
namespace json {
template<typename value,
enum type,
typename object,
typename array,
typename string,
typename number,
typename boolean,
/*typename null = nullptr*/>
struct traits {
using value = value;
using type = type;
using object = object;
using array = array;
using string = string;
using number = number;
using boolean = boolean;
// using null = null;
};
}
}

struct picojson_traits : traits<
picojson::value,
picojson::type, // TBA
picojson::object,
picojson::array,
std::string,
int64_t,
bool> {
};

0 comments on commit c1cfb73

Please sign in to comment.