From c573b17ff7b7d15502faacfa2d739c50393f8246 Mon Sep 17 00:00:00 2001 From: Arnaud TANGUY Date: Tue, 5 Dec 2023 10:14:15 +0100 Subject: [PATCH] [Schema] Only support std::map --- include/mc_rtc/Schema.h | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/include/mc_rtc/Schema.h b/include/mc_rtc/Schema.h index 877298337f..25010d19f7 100644 --- a/include/mc_rtc/Schema.h +++ b/include/mc_rtc/Schema.h @@ -73,8 +73,8 @@ struct is_std_map : std::false_type { }; -template -struct is_std_map> : std::true_type +template +struct is_std_map> : std::true_type { }; @@ -323,7 +323,7 @@ struct Operations auto out_ = out.add(name); T::formToStd(in(description), out_); } - else if constexpr(details::is_std_vector_schema_v || details::is_std_map_schema_v) + else if constexpr(details::is_std_vector_schema_v) { using SchemaT = typename T::value_type; std::vector in_ = in(description); @@ -334,6 +334,7 @@ struct Operations SchemaT::formToStd(in_[i], out_i); } } + else if constexpr(details::is_std_map_schema_v) {} else { out.add(name, in(description)); } } };