From c259e0941b442c79b868e06ba80bdf3f55e9b5e6 Mon Sep 17 00:00:00 2001 From: "Claudius \"keldu\" Holeksa" Date: Fri, 13 Jun 2025 14:56:22 +0200 Subject: Also changed the original data type --- modules/codec-json/c++/json.tmpl.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/codec-json/c++/json.tmpl.hpp b/modules/codec-json/c++/json.tmpl.hpp index 1cf566e..ed70ec8 100644 --- a/modules/codec-json/c++/json.tmpl.hpp +++ b/modules/codec-json/c++/json.tmpl.hpp @@ -314,7 +314,7 @@ struct json_encode, FromEncode> { static error_or encode(const data& from, buffer& to, uint64_t depth, bool pretty) { if constexpr (sizeof...(D) > 0){ - std::array index; + data, FromEncode> index; return encode_level<0,D...>(from, to, index, depth+1u, pretty); } return void_t{}; -- cgit v1.2.3