mirror of
https://github.com/boostorg/algorithm.git
synced 2025-07-06 01:06:37 +02:00
fixing the fix
[SVN r22463]
This commit is contained in:
@ -325,14 +325,10 @@ namespace boost {
|
||||
typedef ForwardIteratorT input_iterator_type;
|
||||
typedef iterator_range<ForwardIteratorT> result_type;
|
||||
|
||||
if(std::distance(Begin,End) >= m_N)
|
||||
{
|
||||
return result_type(Begin,End);
|
||||
}
|
||||
else
|
||||
{
|
||||
return result_type(Begin,Begin+m_N);
|
||||
}
|
||||
if ( (End<=Begin) || (End < (Begin+m_N) ) )
|
||||
return result_type( Begin, End );
|
||||
|
||||
return result_type(Begin,Begin+m_N);
|
||||
}
|
||||
|
||||
private:
|
||||
|
Reference in New Issue
Block a user