diff options
author | MarcoFalke <falke.marco@gmail.com> | 2020-07-01 17:25:35 -0400 |
---|---|---|
committer | MarcoFalke <falke.marco@gmail.com> | 2020-07-01 17:24:46 -0400 |
commit | fac7bdb75e69f731b89e848c11931b4087440283 (patch) | |
tree | 8df8488638132a39a159d0519978e5d6190c9c62 /src/script/standard.cpp | |
parent | 85a68952f86dea04c797a7c060f25cc7e626a47e (diff) |
script: Fix boost/C++17 compile failure
script/standard.cpp:297:48: error: temporary of type 'boost::static_visitor<CScript>' has protected destructor
return boost::apply_visitor(CScriptVisitor{}, dest);
^
/usr/include/boost/variant/static_visitor.hpp:53:5: note: declared protected here
~static_visitor() = default;
^
1 error generated.
Diffstat (limited to 'src/script/standard.cpp')
-rw-r--r-- | src/script/standard.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/script/standard.cpp b/src/script/standard.cpp index 251be8d271..1c4990791c 100644 --- a/src/script/standard.cpp +++ b/src/script/standard.cpp @@ -294,7 +294,7 @@ public: CScript GetScriptForDestination(const CTxDestination& dest) { - return boost::apply_visitor(CScriptVisitor{}, dest); + return boost::apply_visitor(CScriptVisitor(), dest); } CScript GetScriptForRawPubKey(const CPubKey& pubKey) |