diff options
author | MarcoFalke <falke.marco@gmail.com> | 2020-06-19 19:19:22 -0400 |
---|---|---|
committer | MarcoFalke <falke.marco@gmail.com> | 2020-06-19 19:30:21 -0400 |
commit | faa7431fee45b26f7ac2f5fd0b8874cb6afafbd4 (patch) | |
tree | 8d8dd65a265876129a5f14a8673db2877974643e /src/script/standard.cpp | |
parent | d4f9ae00252ba44909a61db0f606be6fddf904c1 (diff) |
refactor: Fix clang compile failure
script/standard.cpp:278:22: error: default initialization of an object of const type 'const (anonymous namespace)::CScriptVisitor' without a user-provided default constructor
const CScriptVisitor g_script_visitor;
^
{}
1 error generated.
Diffstat (limited to 'src/script/standard.cpp')
-rw-r--r-- | src/script/standard.cpp | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/src/script/standard.cpp b/src/script/standard.cpp index d199a84cee..defdfa8d74 100644 --- a/src/script/standard.cpp +++ b/src/script/standard.cpp @@ -274,14 +274,11 @@ public: return CScript() << CScript::EncodeOP_N(id.version) << std::vector<unsigned char>(id.program, id.program + id.length); } }; - -const CScriptVisitor g_script_visitor; - } // namespace CScript GetScriptForDestination(const CTxDestination& dest) { - return boost::apply_visitor(::g_script_visitor, dest); + return boost::apply_visitor(CScriptVisitor{}, dest); } CScript GetScriptForRawPubKey(const CPubKey& pubKey) |