From 595606ca4ed3011af19c6d8a9f95519d84320120 Mon Sep 17 00:00:00 2001 From: "Matthias P. Braendli" Date: Thu, 20 Jul 2023 13:06:22 +0200 Subject: Rework Json so that it works with map that doesn't support incomplete types --- lib/RemoteControl.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'lib/RemoteControl.cpp') diff --git a/lib/RemoteControl.cpp b/lib/RemoteControl.cpp index fbe0662..dca3373 100644 --- a/lib/RemoteControl.cpp +++ b/lib/RemoteControl.cpp @@ -109,7 +109,8 @@ std::list< std::vector > RemoteControllers::get_param_list_values(c std::string RemoteControllers::get_showjson() { json::map_t root; for (auto &controllable : rcs.controllables) { - root[controllable->get_rc_name()].v = controllable->get_all_values(); + root[controllable->get_rc_name()].v = + std::make_shared(controllable->get_all_values()); } return json::map_to_json(root); -- cgit v1.2.3