diff options
author | MarcoFalke <falke.marco@gmail.com> | 2021-01-01 15:02:49 +0100 |
---|---|---|
committer | MarcoFalke <falke.marco@gmail.com> | 2021-01-01 15:08:07 +0100 |
commit | fa749fbea3cad64582f76f7a58cfcc0d91a97326 (patch) | |
tree | 369145c8f60aafc266cb64a768fd29a7e79784d0 /src/rpc/util.h | |
parent | e75f91eae3936269b40b4bfdfe540d5526270936 (diff) |
rpc: Replace boost::variant with std::variant for RPCArg.m_fallback
Diffstat (limited to 'src/rpc/util.h')
-rw-r--r-- | src/rpc/util.h | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/src/rpc/util.h b/src/rpc/util.h index 45b0bb0c7e..942c243718 100644 --- a/src/rpc/util.h +++ b/src/rpc/util.h @@ -1,4 +1,4 @@ -// Copyright (c) 2017-2020 The Bitcoin Core developers +// Copyright (c) 2017-2021 The Bitcoin Core developers // Distributed under the MIT software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. @@ -19,10 +19,9 @@ #include <util/check.h> #include <string> +#include <variant> #include <vector> -#include <boost/variant.hpp> - /** * String used to describe UNIX epoch time in documentation, factored out to a * constant for consistency. @@ -144,7 +143,7 @@ struct RPCArg { */ OMITTED, }; - using Fallback = boost::variant<Optional, /* default value for optional args */ std::string>; + using Fallback = std::variant<Optional, /* default value for optional args */ std::string>; const std::string m_names; //!< The name of the arg (can be empty for inner args, can contain multiple aliases separated by | for named request arguments) const Type m_type; const bool m_hidden; |