From: svost Date: Thu, 7 Apr 2016 07:33:19 +0000 (+0300) Subject: Get rid of boost::counting_iterator X-Git-Tag: nvc-v0.5.9~154^2 X-Git-Url: https://git.novaco.in/?p=novacoin.git;a=commitdiff_plain;h=30b2025958ef65514c20f3226a77ee28e497dcab Get rid of boost::counting_iterator --- diff --git a/src/rpcmining.cpp b/src/rpcmining.cpp index fa02442..62d8837 100644 --- a/src/rpcmining.cpp +++ b/src/rpcmining.cpp @@ -13,7 +13,6 @@ #include #include -#include using namespace json_spirit; using namespace std; @@ -161,7 +160,7 @@ Value scaninput(const Array& params, bool fHelp) } else { - vInputs = vector(boost::counting_iterator( 0 ), boost::counting_iterator( tx.vout.size() )); + for (size_t i = 0; i != tx.vout.size(); ++i) vInputs.push_back(i); } CTxDB txdb("r");