mirror of
https://github.com/boostorg/utility.git
synced 2025-07-30 21:07:27 +02:00
rename counting_iterator() -> make_counting_iterator()
[SVN r9015]
This commit is contained in:
@ -131,7 +131,7 @@ void test_aux(CountingIterator start, CountingIterator finish)
|
|||||||
template <class Incrementable>
|
template <class Incrementable>
|
||||||
void test(Incrementable start, Incrementable finish)
|
void test(Incrementable start, Incrementable finish)
|
||||||
{
|
{
|
||||||
test_aux(boost::counting_iterator(start), boost::counting_iterator(finish));
|
test_aux(boost::make_counting_iterator(start), boost::make_counting_iterator(finish));
|
||||||
}
|
}
|
||||||
|
|
||||||
template <class Integer>
|
template <class Integer>
|
||||||
@ -184,6 +184,6 @@ int main()
|
|||||||
#endif
|
#endif
|
||||||
// Also prove that we can handle raw pointers.
|
// Also prove that we can handle raw pointers.
|
||||||
int array[2000];
|
int array[2000];
|
||||||
test(boost::counting_iterator(array), boost::counting_iterator(array+2000-1));
|
test(boost::make_counting_iterator(array), boost::make_counting_iterator(array+2000-1));
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user