From ee19acaf056e310447acba40f53a0786a67215f8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Th=C3=A9o=20DELRIEU?= Date: Mon, 21 Nov 2016 13:23:25 +0100 Subject: [PATCH] add is_compatible_basic_json_type trait --- src/json.hpp | 41 ++++++++++++++++++++--------------------- 1 file changed, 20 insertions(+), 21 deletions(-) diff --git a/src/json.hpp b/src/json.hpp index bd91a615..0c477a0d 100644 --- a/src/json.hpp +++ b/src/json.hpp @@ -267,6 +267,19 @@ struct is_compatible_float_type std::is_floating_point::value; }; +template +struct is_compatible_basic_json_type +{ + static auto constexpr value = disjunction< + is_compatible_array_type, + is_compatible_object_type, + is_compatible_float_type, + is_compatible_integer_type, + is_compatible_unsigned_integer_type, + std::is_constructible, + std::is_same>::value; +}; + template