Skip to content

Commit b676a4d

Browse files
committed
fix: for bookworm (nlohmann-json 3.11.2)
1 parent 45815f8 commit b676a4d

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/JsonMapFileParser.cc

+3-3
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ namespace ChimeraTK::detail {
9696
}
9797

9898
// NOLINTNEXTLINE(readability-identifier-naming)
99-
friend void to_json(json& j, const HexValue& hv) { to_json(j, hv.v); }
99+
friend void to_json(json& j, const HexValue& hv) { j = hv.v; }
100100
};
101101

102102
/********************************************************************************************************************/
@@ -260,9 +260,9 @@ namespace ChimeraTK::detail {
260260
void fill(const std::vector<size_t>& intId, MetadataCatalogue& metadata) const {
261261
if(!intId.empty()) {
262262
json jsonIntId;
263-
to_json(jsonIntId, intId);
263+
jsonIntId = intId;
264264
json jsonController;
265-
to_json(jsonController, INTC);
265+
jsonController = INTC;
266266
metadata.addMetadata("!" + jsonIntId.dump(), R"({"INTC":)" + jsonController.dump() + "}");
267267
}
268268

0 commit comments

Comments
 (0)