mirror of
https://github.com/privatevoid-net/nix-super.git
synced 2024-11-22 05:56:15 +02:00
Fix the build with nlohmann/json 3.10.4+
This commit is contained in:
parent
bc443511eb
commit
e36add56cf
1 changed files with 1 additions and 1 deletions
|
@ -78,7 +78,7 @@ Realisation Realisation::fromJSON(
|
||||||
auto fieldIterator = json.find(fieldName);
|
auto fieldIterator = json.find(fieldName);
|
||||||
if (fieldIterator == json.end())
|
if (fieldIterator == json.end())
|
||||||
return std::nullopt;
|
return std::nullopt;
|
||||||
return *fieldIterator;
|
return {*fieldIterator};
|
||||||
};
|
};
|
||||||
auto getField = [&](std::string fieldName) -> std::string {
|
auto getField = [&](std::string fieldName) -> std::string {
|
||||||
if (auto field = getOptionalField(fieldName))
|
if (auto field = getOptionalField(fieldName))
|
||||||
|
|
Loading…
Reference in a new issue