diff options
author | Eelco Dolstra <edolstra@gmail.com> | 2022-01-21 11:31:39 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-01-21 11:31:39 +0100 |
commit | accfcfff6b18afe66f25303026a4c9f6cc1549d9 (patch) | |
tree | d946570730a9aa68ee224274e5302de464b3fd02 | |
parent | c7223db87162be1a656eec262350132189ac529b (diff) | |
parent | e36add56cf094388dc450fa31723d05dad1a4947 (diff) |
Merge pull request #5943 from NixOS/3204-fix-build-with-newer-nlohmann-json
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)) |