From 4d0bad9bbb65be5854da202300dcf49f228117b9 Mon Sep 17 00:00:00 2001 From: svost Date: Wed, 12 Oct 2016 12:16:35 +0300 Subject: [PATCH] Remove boost format function --- src/rpcmining.cpp | 5 ++--- 1 files changed, 2 insertions(+), 3 deletions(-) diff --git a/src/rpcmining.cpp b/src/rpcmining.cpp index 61ba258..9092655 100644 --- a/src/rpcmining.cpp +++ b/src/rpcmining.cpp @@ -11,7 +11,6 @@ #include "kernel.h" #include "bitcoinrpc.h" -#include using namespace json_spirit; using namespace std; @@ -138,7 +137,7 @@ Value scaninput(const Array& params, bool fHelp) if (nOut < 0 || nOut > (int)tx.vout.size() - 1) { stringstream strErrorMsg; - strErrorMsg << boost::format("Invalid parameter, input number %d is out of range") % nOut; + strErrorMsg << "Invalid parameter, input number " << to_string(nOut) << " is out of range"; throw JSONRPCError(RPC_INVALID_PARAMETER, strErrorMsg.str()); } @@ -151,7 +150,7 @@ Value scaninput(const Array& params, bool fHelp) if (nOut < 0 || nOut > (int)tx.vout.size() - 1) { stringstream strErrorMsg; - strErrorMsg << boost::format("Invalid parameter, input number %d is out of range") % nOut; + strErrorMsg << "Invalid parameter, input number " << to_string(nOut) << " is out of range"; throw JSONRPCError(RPC_INVALID_PARAMETER, strErrorMsg.str()); } -- 1.7.1