mirror of
https://github.com/Xahau/xahaud.git
synced 2025-12-06 17:27:52 +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
@@ -24,9 +24,9 @@
|
||||
#include <ripple/protocol/SField.h>
|
||||
#include <ripple/protocol/STBase.h>
|
||||
#include <ripple/protocol/UintTypes.h>
|
||||
#include <boost/optional.hpp>
|
||||
#include <cassert>
|
||||
#include <cstddef>
|
||||
#include <optional>
|
||||
|
||||
namespace ripple {
|
||||
|
||||
@@ -50,9 +50,9 @@ private:
|
||||
|
||||
public:
|
||||
STPathElement(
|
||||
boost::optional<AccountID> const& account,
|
||||
boost::optional<Currency> const& currency,
|
||||
boost::optional<AccountID> const& issuer)
|
||||
std::optional<AccountID> const& account,
|
||||
std::optional<Currency> const& currency,
|
||||
std::optional<AccountID> const& issuer)
|
||||
: mType(typeNone)
|
||||
{
|
||||
if (!account)
|
||||
|
||||
Reference in New Issue
Block a user