diff options
Diffstat (limited to 'test/std/algorithms/alg.sorting/alg.min.max/minmax_element_comp.pass.cpp')
-rw-r--r-- | test/std/algorithms/alg.sorting/alg.min.max/minmax_element_comp.pass.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/test/std/algorithms/alg.sorting/alg.min.max/minmax_element_comp.pass.cpp b/test/std/algorithms/alg.sorting/alg.min.max/minmax_element_comp.pass.cpp index 3a0c2dbbba1b..7840638f742c 100644 --- a/test/std/algorithms/alg.sorting/alg.min.max/minmax_element_comp.pass.cpp +++ b/test/std/algorithms/alg.sorting/alg.min.max/minmax_element_comp.pass.cpp @@ -18,6 +18,7 @@ #include <functional> #include <cassert> +#include "test_macros.h" #include "test_iterators.h" template <class Iter> @@ -44,7 +45,7 @@ test(Iter first, Iter last) template <class Iter> void -test(unsigned N) +test(int N) { int* a = new int[N]; for (int i = 0; i < N; ++i) @@ -65,7 +66,7 @@ test() test<Iter>(10); test<Iter>(1000); { - const unsigned N = 100; + const int N = 100; int* a = new int[N]; for (int i = 0; i < N; ++i) a[i] = 5; |