Skip to content

Commit 81075c5

Browse files
committed
DPL: fix long standing bug with ArrayString serialization
This is actually the reason why tables are lost from the metadata.
1 parent 4f060ca commit 81075c5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Framework/Core/src/VariantJSONHelpers.cxx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -339,7 +339,7 @@ void writeVariant(std::ostream& o, Variant const& v)
339339
rapidjson::Writer<rapidjson::OStreamWrapper> w(osw);
340340

341341
auto writeArray = [&](auto* values, size_t size) {
342-
using T = std::remove_pointer_t<decltype(values)>;
342+
using T = std::remove_cv_t<std::remove_pointer_t<decltype(values)>>;
343343
w.StartArray();
344344
for (auto i = 0u; i < size; ++i) {
345345
if constexpr (std::is_same_v<int, T>) {

0 commit comments

Comments
 (0)