diff options
author | regnat <rg@regnat.ovh> | 2022-01-19 14:37:54 +0100 |
---|---|---|
committer | regnat <rg@regnat.ovh> | 2022-01-19 14:37:54 +0100 |
commit | e36add56cf094388dc450fa31723d05dad1a4947 (patch) | |
tree | 003cb663b4fd8344be16570603176a444f9adbe5 | |
parent | bc443511eb65420b51d10708e25427fe50de37a8 (diff) |
Fix the build with nlohmann/json 3.10.4+
-rw-r--r-- | src/libstore/realisation.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libstore/realisation.cc b/src/libstore/realisation.cc index f871e6437..d63ec5ea2 100644 --- a/src/libstore/realisation.cc +++ b/src/libstore/realisation.cc @@ -78,7 +78,7 @@ Realisation Realisation::fromJSON( auto fieldIterator = json.find(fieldName); if (fieldIterator == json.end()) return std::nullopt; - return *fieldIterator; + return {*fieldIterator}; }; auto getField = [&](std::string fieldName) -> std::string { if (auto field = getOptionalField(fieldName)) |