-
-
Notifications
You must be signed in to change notification settings - Fork 249
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
10a86f5
commit c1cfb73
Showing
1 changed file
with
35 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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> { | ||
}; | ||
|