From 0f322078973d93fb04df67f3229e9a1e084b8073 Mon Sep 17 00:00:00 2001 From: Jacob Schloss Date: Tue, 12 Nov 2024 13:17:20 -0800 Subject: [PATCH] map std::tuple to json::value_t::array --- include/jsonrpccxx/typemapper.hpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/include/jsonrpccxx/typemapper.hpp b/include/jsonrpccxx/typemapper.hpp index b2ecbc5..c7952db 100644 --- a/include/jsonrpccxx/typemapper.hpp +++ b/include/jsonrpccxx/typemapper.hpp @@ -4,6 +4,7 @@ #include "nlohmann/json.hpp" #include #include +#include #include #include @@ -19,6 +20,10 @@ namespace jsonrpccxx { constexpr json::value_t GetType(type>) { return json::value_t::array; } + template + constexpr json::value_t GetType(type>) { + return json::value_t::array; + } template constexpr json::value_t GetType(type) { if (std::is_enum::value) {