mirror of
https://github.com/nlohmann/json.git
synced 2026-10-18 12:08:12 +00:00
Templatize basic_json ctor from json_ref
This commit is contained in:
1 parent
4396a68d2d
commit
ec955f08b4
3 files changed
+34
-8
No files matched your search
@@ -41,6 +41,19 @@ template<typename> struct is_basic_json : std::false_type {};
|
||||
NLOHMANN_BASIC_JSON_TPL_DECLARATION
|
||||
struct is_basic_json<NLOHMANN_BASIC_JSON_TPL> : std::true_type {};
|
||||
|
||||
//////////////////////
|
||||
// jspn_ref helpers //
|
||||
//////////////////////
|
||||
|
||||
template <typename>
|
||||
class json_ref;
|
||||
|
||||
template<typename>
|
||||
struct is_json_ref : std::false_type {};
|
||||
|
||||
template <typename T>
|
||||
struct is_json_ref<json_ref<T>> : std::true_type {};
|
||||
|
||||
//////////////////////////
|
||||
// aliases for detected //
|
||||
//////////////////////////
|
||||
|
||||
Reference in new issue
Block a user