diff --git a/counting_iterator_test.cpp b/counting_iterator_test.cpp index 8d6e553..83577bc 100644 --- a/counting_iterator_test.cpp +++ b/counting_iterator_test.cpp @@ -131,7 +131,7 @@ void test_aux(CountingIterator start, CountingIterator finish) template 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 @@ -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; }