rename counting_iterator() -> make_counting_iterator()

[SVN r9015]
This commit is contained in:
Dave Abrahams
2001-02-07 22:27:02 +00:00
parent f42060c616
commit 493d124c07

View File

@ -131,7 +131,7 @@ void test_aux(CountingIterator start, CountingIterator finish)
template <class Incrementable>
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>
@ -184,6 +184,6 @@ int main()
#endif
// Also prove that we can handle raw pointers.
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;
}