From faa8f68943615785a2855676cf96e0e96f3cc6bd Mon Sep 17 00:00:00 2001 From: MarcoFalke Date: Mon, 4 Jan 2021 11:20:02 +0100 Subject: Replace boost::variant with std::variant --- src/wallet/wallet.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/wallet/wallet.cpp') diff --git a/src/wallet/wallet.cpp b/src/wallet/wallet.cpp index ed5de6e852..16191806b9 100644 --- a/src/wallet/wallet.cpp +++ b/src/wallet/wallet.cpp @@ -2789,7 +2789,7 @@ bool CWallet::CreateTransactionInternal( CScript scriptChange; // coin control: send change to custom address - if (!boost::get(&coin_control.destChange)) { + if (!std::get_if(&coin_control.destChange)) { scriptChange = GetScriptForDestination(coin_control.destChange); } else { // no coin control: send change to newly generated address // Note: We use a new key here to keep it from being obvious which side is the change. @@ -3724,7 +3724,7 @@ unsigned int CWallet::ComputeTimeSmart(const CWalletTx& wtx) const bool CWallet::AddDestData(WalletBatch& batch, const CTxDestination &dest, const std::string &key, const std::string &value) { - if (boost::get(&dest)) + if (std::get_if(&dest)) return false; m_address_book[dest].destdata.insert(std::make_pair(key, value)); -- cgit v1.2.3