From 30b2025958ef65514c20f3226a77ee28e497dcab Mon Sep 17 00:00:00 2001 From: svost Date: Thu, 7 Apr 2016 10:33:19 +0300 Subject: [PATCH] Get rid of boost::counting_iterator --- src/rpcmining.cpp | 3 +-- 1 files changed, 1 insertions(+), 2 deletions(-) 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"); -- 1.7.1