From ec5ba4c7a7cd347716031209e62ffb2e14a04380 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 c23c213f5..ca660b8de 100644 --- a/src/json.hpp +++ b/src/json.hpp @@ -252,6 +252,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