nonstd::optional -> std::optional

pull/1252/head
Stephen Shelton 4 years ago
parent da8583a69d
commit 78eb0d976d
No known key found for this signature in database
GPG Key ID: EE4BADACCE8B631C

@ -226,12 +226,12 @@ namespace llarp
}; };
conf.defineOption<std::string>( conf.defineOption<std::string>(
"dns", "upstream", false, true, nonstd::nullopt, [=](std::string arg) { "dns", "upstream", false, true, std::nullopt, [=](std::string arg) {
m_upstreamDNS.push_back(parseAddr(arg)); m_upstreamDNS.push_back(parseAddr(arg));
}); });
conf.defineOption<std::string>( conf.defineOption<std::string>(
"dns", "bind", false, nonstd::nullopt, [=](std::string arg) { m_bind = parseAddr(arg); }); "dns", "bind", false, std::nullopt, [=](std::string arg) { m_bind = parseAddr(arg); });
} }
LinksConfig::LinkInfo LinksConfig::LinkInfo

@ -125,7 +125,7 @@ namespace llarp
else if (not required and not multiValued) else if (not required and not multiValued)
return defaultValue; return defaultValue;
else else
return nonstd::nullopt; return std::nullopt;
} }
/// Returns the value at the given index. /// Returns the value at the given index.

Loading…
Cancel
Save