diff --git a/Framework/Core/src/VariantJSONHelpers.cxx b/Framework/Core/src/VariantJSONHelpers.cxx index fbb5abb331867..f3d6061020ea2 100644 --- a/Framework/Core/src/VariantJSONHelpers.cxx +++ b/Framework/Core/src/VariantJSONHelpers.cxx @@ -339,7 +339,7 @@ void writeVariant(std::ostream& o, Variant const& v) rapidjson::Writer w(osw); auto writeArray = [&](auto* values, size_t size) { - using T = std::remove_pointer_t; + using T = std::remove_cv_t>; w.StartArray(); for (auto i = 0u; i < size; ++i) { if constexpr (std::is_same_v) {