diff options
author | fanquake <fanquake@gmail.com> | 2021-01-11 10:19:43 +0800 |
---|---|---|
committer | fanquake <fanquake@gmail.com> | 2021-01-11 12:05:46 +0800 |
commit | bd6af53e1f8ec9d25cedf0bf36c98b99a8d88774 (patch) | |
tree | b26a11f34bbb1aede05634836a85032af44d58c3 /src/rpc/util.cpp | |
parent | c4458cc3a1d13bc0fb2f9c627e71cd3c8914575d (diff) | |
parent | faa8f68943615785a2855676cf96e0e96f3cc6bd (diff) |
Merge #20480: Replace boost::variant with std::variant
faa8f68943615785a2855676cf96e0e96f3cc6bd Replace boost::variant with std::variant (MarcoFalke)
Pull request description:
Now that we can use std::variant from the vanilla standard library, drop the third-party boost variant dependency
ACKs for top commit:
fjahr:
Code review ACK faa8f68943615785a2855676cf96e0e96f3cc6bd
fanquake:
ACK faa8f68943615785a2855676cf96e0e96f3cc6bd
Tree-SHA512: 6e3aecd33b00c2e31a763f999247944d5b2ce5e3018f1965c516c1000cd08ff6703a8d50fb0be64883153da2925ae72986b8a6b96586db74057bd05d6f4986e6
Diffstat (limited to 'src/rpc/util.cpp')
-rw-r--r-- | src/rpc/util.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/rpc/util.cpp b/src/rpc/util.cpp index e377a80fbd..31072114da 100644 --- a/src/rpc/util.cpp +++ b/src/rpc/util.cpp @@ -209,7 +209,7 @@ CTxDestination AddAndGetMultisigDestination(const int required, const std::vecto return dest; } -class DescribeAddressVisitor : public boost::static_visitor<UniValue> +class DescribeAddressVisitor { public: explicit DescribeAddressVisitor() {} @@ -267,7 +267,7 @@ public: UniValue DescribeAddress(const CTxDestination& dest) { - return boost::apply_visitor(DescribeAddressVisitor(), dest); + return std::visit(DescribeAddressVisitor(), dest); } unsigned int ParseConfirmTarget(const UniValue& value, unsigned int max_target) |