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
@@ -821,7 +821,7 @@ Config::getDebugLogFile() const
|
||||
}
|
||||
|
||||
int
|
||||
Config::getValueFor(SizedItem item, boost::optional<std::size_t> node) const
|
||||
Config::getValueFor(SizedItem item, std::optional<std::size_t> node) const
|
||||
{
|
||||
auto const index = static_cast<std::underlying_type_t<SizedItem>>(item);
|
||||
assert(index < sizedItems.size());
|
||||
|
||||
Reference in New Issue
Block a user