From a645a766e4f523274da9f02979efaf556c3af04c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Th=C3=A9o=20DELRIEU?= Date: Tue, 29 Nov 2016 13:09:51 +0100 Subject: [PATCH] add support for non-default-constructible udt --- src/json.hpp | 139 +++++++----- test/src/unit-udt.cpp | 486 +++++++----------------------------------- 2 files changed, 162 insertions(+), 463 deletions(-) diff --git a/src/json.hpp b/src/json.hpp index f63b72f48..edf8a78eb 100644 --- a/src/json.hpp +++ b/src/json.hpp @@ -275,14 +275,32 @@ struct is_compatible_basic_json_type }; -// This trait checks if JSONSerializer::from_json exists +// This trait checks if JSONSerializer::from_json(json const&, udt&) exists template