Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r55706 - sandbox/libs/mapreduce/test
From: cdm.henderson_at_[hidden]
Date: 2009-08-21 16:43:57


Author: chenderson
Date: 2009-08-21 16:43:57 EDT (Fri, 21 Aug 2009)
New Revision: 55706
URL: http://svn.boost.org/trac/boost/changeset/55706

Log:
Missing typename keywords added
Text files modified:
   sandbox/libs/mapreduce/test/mrtest.cpp | 4 ++--
   1 files changed, 2 insertions(+), 2 deletions(-)

Modified: sandbox/libs/mapreduce/test/mrtest.cpp
==============================================================================
--- sandbox/libs/mapreduce/test/mrtest.cpp (original)
+++ sandbox/libs/mapreduce/test/mrtest.cpp 2009-08-21 16:43:57 EDT (Fri, 21 Aug 2009)
@@ -262,7 +262,7 @@
             typedef std::list<typename Job::keyvalue_t> frequencies_t;
             frequencies_t frequencies;
             frequencies.push_back(*it);
- frequencies_t::reverse_iterator it_smallest = frequencies.rbegin();
+ typename frequencies_t::reverse_iterator it_smallest = frequencies.rbegin();
             for (++it; it!=ite; ++it)
             {
                 if (frequencies.size() < 10) // show top 10
@@ -280,7 +280,7 @@
 
             frequencies.sort(boost::mapreduce::detail::greater_2nd<typename Job::keyvalue_t>);
             std::cout << "\n\nMapReduce results:";
- for (frequencies_t::const_iterator freq=frequencies.begin(); freq!=frequencies.end(); ++freq)
+ for (typename frequencies_t::const_iterator freq=frequencies.begin(); freq!=frequencies.end(); ++freq)
                 std::cout << "\n" << freq->first << "\t" << freq->second;
         }
     }


Boost-Commit list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk