mirror of
https://github.com/boostorg/range.git
synced 2025-07-30 21:07:23 +02:00
Boost.Range correct the adjacent_filtered adaptor to be resilient accident argument dependent lookup of boost::next
[SVN r61024]
This commit is contained in:
@ -116,7 +116,7 @@ namespace boost
|
|||||||
{
|
{
|
||||||
if (default_pass)
|
if (default_pass)
|
||||||
{
|
{
|
||||||
raw_iterator nxt = next(it);
|
raw_iterator nxt = ::boost::next(it);
|
||||||
while (nxt != last && !bi_pred(*it, *nxt))
|
while (nxt != last && !bi_pred(*it, *nxt))
|
||||||
{
|
{
|
||||||
++it;
|
++it;
|
||||||
@ -125,7 +125,7 @@ namespace boost
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
raw_iterator nxt = next(it);
|
raw_iterator nxt = ::boost::next(it);
|
||||||
for(; nxt != last; ++it, ++nxt)
|
for(; nxt != last; ++it, ++nxt)
|
||||||
{
|
{
|
||||||
if (bi_pred(*it, *nxt))
|
if (bi_pred(*it, *nxt))
|
||||||
@ -155,7 +155,7 @@ namespace boost
|
|||||||
{
|
{
|
||||||
BOOST_ASSERT( current != this->end().base() );
|
BOOST_ASSERT( current != this->end().base() );
|
||||||
|
|
||||||
current = to_valid(next(current), this->end().base(), m_bi_pred, m_default_pass);
|
current = to_valid(::boost::next(current), this->end().base(), m_bi_pred, m_default_pass);
|
||||||
}
|
}
|
||||||
|
|
||||||
private:
|
private:
|
||||||
|
Reference in New Issue
Block a user