aboutsummaryrefslogtreecommitdiff
path: root/src/libstore/realisation.cc
diff options
context:
space:
mode:
authorregnat <rg@regnat.ovh>2022-01-19 14:37:54 +0100
committerregnat <rg@regnat.ovh>2022-01-19 14:37:54 +0100
commite36add56cf094388dc450fa31723d05dad1a4947 (patch)
tree003cb663b4fd8344be16570603176a444f9adbe5 /src/libstore/realisation.cc
parentbc443511eb65420b51d10708e25427fe50de37a8 (diff)
Fix the build with nlohmann/json 3.10.4+
Diffstat (limited to 'src/libstore/realisation.cc')
-rw-r--r--src/libstore/realisation.cc2
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))