From c0430f42b868dbf996a416d3a9d81d1c8c07e47c Mon Sep 17 00:00:00 2001 From: Gavin Andresen Date: Mon, 9 May 2011 13:31:10 -0400 Subject: [PATCH] Fix broken build (invalid use of qualified name std::advance) --- rpc.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/rpc.cpp b/rpc.cpp index 85f8b02216..d6a92b3463 100644 --- a/rpc.cpp +++ b/rpc.cpp @@ -1119,7 +1119,8 @@ Value listtransactions(const Array& params, bool fHelp) } // Now: iterate backwards until we have nCount items to return: - for (TxItems::reverse_iterator it = txByTime.rbegin(), std::advance(it, nFrom); it != txByTime.rend(); ++it) + TxItems::reverse_iterator it = txByTime.rbegin(); + for (std::advance(it, nFrom); it != txByTime.rend(); ++it) { CWalletTx *const pwtx = (*it).second.first; if (pwtx != 0)