From 3fb81a8480582d96e8c87ef1b963a11c55064d57 Mon Sep 17 00:00:00 2001 From: practicalswift Date: Tue, 6 Jun 2017 21:15:28 +0200 Subject: Use list initialization (C++11) for maps/vectors instead of boost::assign::map_list_of/list_of --- src/bitcoin-tx.cpp | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'src/bitcoin-tx.cpp') diff --git a/src/bitcoin-tx.cpp b/src/bitcoin-tx.cpp index cf280f485c..b9e6822f8d 100644 --- a/src/bitcoin-tx.cpp +++ b/src/bitcoin-tx.cpp @@ -24,7 +24,6 @@ #include #include -#include static bool fCreateBlank; static std::map registers; @@ -546,7 +545,11 @@ static void MutateTxSign(CMutableTransaction& tx, const std::string& flagStr) if (!prevOut.isObject()) throw std::runtime_error("expected prevtxs internal object"); - std::map types = boost::assign::map_list_of("txid", UniValue::VSTR)("vout",UniValue::VNUM)("scriptPubKey",UniValue::VSTR); + std::map types = { + {"txid", UniValue::VSTR}, + {"vout", UniValue::VNUM}, + {"scriptPubKey", UniValue::VSTR}, + }; if (!prevOut.checkObject(types)) throw std::runtime_error("prevtxs internal object typecheck fail"); -- cgit v1.2.3