From fe086d7432191fbc9f9d3d8adb4766e291f19d50 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Th=C3=A9o=20DELRIEU?= Date: Sat, 1 Jul 2017 19:44:05 +0200 Subject: [PATCH 1/9] forward declare basic_json, add two macros Those macros are used to reduce template argument boilerplate --- src/json.hpp | 53 +++++++++++++++++++++++++++++++++++++--------------- 1 file changed, 38 insertions(+), 15 deletions(-) diff --git a/src/json.hpp b/src/json.hpp index 1bde08ce..3c615451 100644 --- a/src/json.hpp +++ b/src/json.hpp @@ -115,6 +115,39 @@ SOFTWARE. */ namespace nlohmann { +template +struct adl_serializer; + +// forward declaration of basic_json (required to split the class) +template