Get rid of boost::counting_iterator 302/head
authorsvost <ya.nowa@yandex.ru>
Thu, 7 Apr 2016 07:33:19 +0000 (10:33 +0300)
committersvost <ya.nowa@yandex.ru>
Thu, 7 Apr 2016 07:33:19 +0000 (10:33 +0300)
src/rpcmining.cpp

index fa02442..62d8837 100644 (file)
@@ -13,7 +13,6 @@
 
 #include <boost/format.hpp>
 #include <boost/assign/list_of.hpp>
-#include <boost/iterator/counting_iterator.hpp>
 
 using namespace json_spirit;
 using namespace std;
@@ -161,7 +160,7 @@ Value scaninput(const Array& params, bool fHelp)
         }
         else
         {
-            vInputs = vector<int>(boost::counting_iterator<int>( 0 ), boost::counting_iterator<int>( tx.vout.size() ));
+            for (size_t i = 0; i != tx.vout.size(); ++i) vInputs.push_back(i);
         }
 
         CTxDB txdb("r");