From 60e6f822fa25fd8f030728b02821da8f1d63b7b4 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 1e3c6f3b4..2dfa7c022 100644 --- a/src/json.hpp +++ b/src/json.hpp @@ -290,14 +290,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