mirror of
https://github.com/XRPLF/rippled.git
synced 2025-12-06 17:27:55 +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
@@ -125,7 +125,7 @@ LedgerOracle::accept(
|
||||
return Ledger(it->second, &(it->first));
|
||||
}
|
||||
|
||||
boost::optional<Ledger>
|
||||
std::optional<Ledger>
|
||||
LedgerOracle::lookup(Ledger::ID const& id) const
|
||||
{
|
||||
auto const it = instances_.right.find(id);
|
||||
@@ -133,7 +133,7 @@ LedgerOracle::lookup(Ledger::ID const& id) const
|
||||
{
|
||||
return Ledger(it->first, &(it->second));
|
||||
}
|
||||
return boost::none;
|
||||
return std::nullopt;
|
||||
}
|
||||
|
||||
std::size_t
|
||||
|
||||
Reference in New Issue
Block a user