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)); } } };