forked from boostorg/range
[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]
This commit is contained in:
@ -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
|
||||
|
Reference in New Issue
Block a user