mirror of
https://github.com/XRPLF/rippled.git
synced 2025-11-21 19:45:53 +00:00
Prefer std::optional over boost:optional:
Some of the boost::optionals must remain for now. Both boost::beast and SOCI have interfaces that require boost::optional.
This commit is contained in:
committed by
Nik Bougalis
parent
85307b29d0
commit
3b33318dc8
@@ -48,12 +48,12 @@ detail::FeatureCollections::FeatureCollections()
|
||||
}
|
||||
}
|
||||
|
||||
boost::optional<uint256>
|
||||
std::optional<uint256>
|
||||
detail::FeatureCollections::getRegisteredFeature(std::string const& name) const
|
||||
{
|
||||
auto const i = nameToFeature.find(name);
|
||||
if (i == nameToFeature.end())
|
||||
return boost::none;
|
||||
return std::nullopt;
|
||||
return i->second;
|
||||
}
|
||||
|
||||
@@ -141,7 +141,7 @@ detail::supportedAmendments()
|
||||
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
boost::optional<uint256>
|
||||
std::optional<uint256>
|
||||
getRegisteredFeature(std::string const& name)
|
||||
{
|
||||
return featureCollections.getRegisteredFeature(name);
|
||||
|
||||
Reference in New Issue
Block a user