From 7c6b10a1be984fd039eb3a4dc39921b70be6b07d Mon Sep 17 00:00:00 2001 From: MistEO Date: Sat, 21 Oct 2023 05:00:28 +0800 Subject: [PATCH] feat: add declare for serialize --- include/json.hpp | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/include/json.hpp b/include/json.hpp index 1e08096..c5f6b7b 100644 --- a/include/json.hpp +++ b/include/json.hpp @@ -565,6 +565,15 @@ namespace literals template const basic_value invalid_value(); +namespace _serialization_helper +{ + template + class streamer; +} +template > +basic_value serialize(any_t&& arg, streamer_t&& streamer = streamer_t()); + // ****************************** // * basic_value impl * // ****************************** @@ -2592,9 +2601,8 @@ namespace _serialization_helper } } -template > -MEOJSON_INLINE basic_value serialize(any_t&& arg, streamer_t&& streamer = streamer_t()) +template +MEOJSON_INLINE basic_value serialize(any_t&& arg, streamer_t&& streamer) { using namespace _serialization_helper;