From 96c78123f02f41541ee2120e389bcc3f5ac9bc2a Mon Sep 17 00:00:00 2001 From: Neil Groves Date: Sun, 16 Jan 2011 00:05:12 +0000 Subject: [PATCH] [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. [SVN r68177] --- include/boost/range/iterator_range_core.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/boost/range/iterator_range_core.hpp b/include/boost/range/iterator_range_core.hpp index 7664c2e..7ef7523 100755 --- a/include/boost/range/iterator_range_core.hpp +++ b/include/boost/range/iterator_range_core.hpp @@ -231,7 +231,7 @@ namespace boost difference_type size() const { - return std::distance(m_Begin, m_End); + return m_End - m_Begin; } bool empty() const