mirror of
https://github.com/Xahau/xahaud.git
synced 2025-11-21 02:55:50 +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
@@ -260,11 +260,11 @@ private:
|
||||
stopped();
|
||||
}
|
||||
|
||||
// VFALCO TODO This should return boost::optional<uint256>
|
||||
// VFALCO TODO This should return std::optional<uint256>
|
||||
LedgerHash
|
||||
getLedgerHash(std::shared_ptr<ReadView const>& ledger, LedgerIndex index)
|
||||
{
|
||||
boost::optional<LedgerHash> hash;
|
||||
std::optional<LedgerHash> hash;
|
||||
try
|
||||
{
|
||||
hash = hashOfSeq(*ledger, index, j_);
|
||||
|
||||
Reference in New Issue
Block a user