mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-11-11 14:38:29 +01:00
Use list initialization (C++11) for maps/vectors instead of boost::assign::map_list_of/list_of
This commit is contained in:
@@ -15,7 +15,6 @@
|
||||
#include "utilmoneystr.h"
|
||||
#include "utilstrencodings.h"
|
||||
|
||||
#include <boost/assign/list_of.hpp>
|
||||
#include <boost/foreach.hpp>
|
||||
|
||||
std::string FormatScript(const CScript& script)
|
||||
@@ -53,15 +52,14 @@ std::string FormatScript(const CScript& script)
|
||||
return ret.substr(0, ret.size() - 1);
|
||||
}
|
||||
|
||||
const std::map<unsigned char, std::string> mapSigHashTypes =
|
||||
boost::assign::map_list_of
|
||||
(static_cast<unsigned char>(SIGHASH_ALL), std::string("ALL"))
|
||||
(static_cast<unsigned char>(SIGHASH_ALL|SIGHASH_ANYONECANPAY), std::string("ALL|ANYONECANPAY"))
|
||||
(static_cast<unsigned char>(SIGHASH_NONE), std::string("NONE"))
|
||||
(static_cast<unsigned char>(SIGHASH_NONE|SIGHASH_ANYONECANPAY), std::string("NONE|ANYONECANPAY"))
|
||||
(static_cast<unsigned char>(SIGHASH_SINGLE), std::string("SINGLE"))
|
||||
(static_cast<unsigned char>(SIGHASH_SINGLE|SIGHASH_ANYONECANPAY), std::string("SINGLE|ANYONECANPAY"))
|
||||
;
|
||||
const std::map<unsigned char, std::string> mapSigHashTypes = {
|
||||
{static_cast<unsigned char>(SIGHASH_ALL), std::string("ALL")},
|
||||
{static_cast<unsigned char>(SIGHASH_ALL|SIGHASH_ANYONECANPAY), std::string("ALL|ANYONECANPAY")},
|
||||
{static_cast<unsigned char>(SIGHASH_NONE), std::string("NONE")},
|
||||
{static_cast<unsigned char>(SIGHASH_NONE|SIGHASH_ANYONECANPAY), std::string("NONE|ANYONECANPAY")},
|
||||
{static_cast<unsigned char>(SIGHASH_SINGLE), std::string("SINGLE")},
|
||||
{static_cast<unsigned char>(SIGHASH_SINGLE|SIGHASH_ANYONECANPAY), std::string("SINGLE|ANYONECANPAY")},
|
||||
};
|
||||
|
||||
/**
|
||||
* Create the assembly string representation of a CScript object.
|
||||
|
||||
Reference in New Issue
Block a user