diff --git a/test/util/range.cpp b/test/util/range.cpp index 22095e975..c96464abe 100644 --- a/test/util/range.cpp +++ b/test/util/range.cpp @@ -12,6 +12,7 @@ #include +#include #include #include @@ -198,12 +199,13 @@ void test_detail() #endif } +template void test_pointers() { int arr[10] = {0, 1, 2, 3, 4, 5, 6, 7, 8, 9}; - boost::iterator_range r1(arr, arr+10); - std::pair r2(arr, arr+10); + boost::iterator_range r1(arr, arr + 10); + std::pair r2(arr, arr + 10); BOOST_CHECK(bgr::front(r1) == 0); BOOST_CHECK(bgr::front(r2) == 0); @@ -226,7 +228,8 @@ int test_main(int, char* []) test_all(); test_detail(); - test_pointers(); + test_pointers(); + test_pointers(); return 0; }