Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r68177 - trunk/boost/range
From: neil_at_[hidden]
Date: 2011-01-15 19:05:31


Author: neilgroves
Date: 2011-01-15 19:05:12 EST (Sat, 15 Jan 2011)
New Revision: 68177
URL: http://svn.boost.org/trac/boost/changeset/68177

Log:
[boost][range] - Fixed erroneous change by 'Wash' the size() function is intended to be for Random Access Ranges only to be in keeping with the other Boost.Range size() functions.
Text files modified:
   trunk/boost/range/iterator_range_core.hpp | 2 +-
   1 files changed, 1 insertions(+), 1 deletions(-)

Modified: trunk/boost/range/iterator_range_core.hpp
==============================================================================
--- trunk/boost/range/iterator_range_core.hpp (original)
+++ trunk/boost/range/iterator_range_core.hpp 2011-01-15 19:05:12 EST (Sat, 15 Jan 2011)
@@ -231,7 +231,7 @@
 
             difference_type size() const
             {
- return std::distance(m_Begin, m_End);
+ return m_End - m_Begin;
             }
 
             bool empty() const


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