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.
This commit is contained in:
MarcoFalke 2020-07-01 17:25:35 -04:00
parent 85a68952f8
commit fac7bdb75e
No known key found for this signature in database
GPG Key ID: CE2B75697E69A548

View File

@ -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)