Index: test/std/algorithms/alg.sorting/alg.binary.search/binary.search/binary_search.pass.cpp =================================================================== --- test/std/algorithms/alg.sorting/alg.binary.search/binary.search/binary_search.pass.cpp +++ test/std/algorithms/alg.sorting/alg.binary.search/binary.search/binary_search.pass.cpp @@ -18,6 +18,7 @@ #include #include #include +#include #include "test_iterators.h" @@ -36,7 +37,7 @@ const unsigned M = 10; std::vector v(N); int x = 0; - for (int i = 0; i < v.size(); ++i) + for (std::size_t i = 0; i < v.size(); ++i) { v[i] = x; if (++x == M) Index: test/std/algorithms/alg.sorting/alg.binary.search/binary.search/binary_search_comp.pass.cpp =================================================================== --- test/std/algorithms/alg.sorting/alg.binary.search/binary.search/binary_search_comp.pass.cpp +++ test/std/algorithms/alg.sorting/alg.binary.search/binary.search/binary_search_comp.pass.cpp @@ -19,6 +19,7 @@ #include #include #include +#include #include "test_iterators.h" @@ -37,7 +38,7 @@ const unsigned M = 10; std::vector v(N); int x = 0; - for (int i = 0; i < v.size(); ++i) + for (std::size_t i = 0; i < v.size(); ++i) { v[i] = x; if (++x == M) Index: test/std/algorithms/alg.sorting/alg.binary.search/equal.range/equal_range.pass.cpp =================================================================== --- test/std/algorithms/alg.sorting/alg.binary.search/equal.range/equal_range.pass.cpp +++ test/std/algorithms/alg.sorting/alg.binary.search/equal.range/equal_range.pass.cpp @@ -18,6 +18,7 @@ #include #include #include +#include #include "test_iterators.h" @@ -44,7 +45,7 @@ const unsigned M = 10; std::vector v(N); int x = 0; - for (int i = 0; i < v.size(); ++i) + for (std::size_t i = 0; i < v.size(); ++i) { v[i] = x; if (++x == M) Index: test/std/algorithms/alg.sorting/alg.binary.search/equal.range/equal_range_comp.pass.cpp =================================================================== --- test/std/algorithms/alg.sorting/alg.binary.search/equal.range/equal_range_comp.pass.cpp +++ test/std/algorithms/alg.sorting/alg.binary.search/equal.range/equal_range_comp.pass.cpp @@ -19,6 +19,7 @@ #include #include #include +#include #include "test_iterators.h" @@ -45,7 +46,7 @@ const unsigned M = 10; std::vector v(N); int x = 0; - for (int i = 0; i < v.size(); ++i) + for (std::size_t i = 0; i < v.size(); ++i) { v[i] = x; if (++x == M) Index: test/std/algorithms/alg.sorting/alg.binary.search/lower.bound/lower_bound.pass.cpp =================================================================== --- test/std/algorithms/alg.sorting/alg.binary.search/lower.bound/lower_bound.pass.cpp +++ test/std/algorithms/alg.sorting/alg.binary.search/lower.bound/lower_bound.pass.cpp @@ -17,6 +17,7 @@ #include #include #include +#include #include "test_iterators.h" @@ -39,7 +40,7 @@ const unsigned M = 10; std::vector v(N); int x = 0; - for (int i = 0; i < v.size(); ++i) + for (std::size_t i = 0; i < v.size(); ++i) { v[i] = x; if (++x == M) Index: test/std/algorithms/alg.sorting/alg.binary.search/lower.bound/lower_bound_comp.pass.cpp =================================================================== --- test/std/algorithms/alg.sorting/alg.binary.search/lower.bound/lower_bound_comp.pass.cpp +++ test/std/algorithms/alg.sorting/alg.binary.search/lower.bound/lower_bound_comp.pass.cpp @@ -18,6 +18,7 @@ #include #include #include +#include #include "test_iterators.h" @@ -40,7 +41,7 @@ const unsigned M = 10; std::vector v(N); int x = 0; - for (int i = 0; i < v.size(); ++i) + for (std::size_t i = 0; i < v.size(); ++i) { v[i] = x; if (++x == M) Index: test/std/algorithms/alg.sorting/alg.binary.search/upper.bound/upper_bound.pass.cpp =================================================================== --- test/std/algorithms/alg.sorting/alg.binary.search/upper.bound/upper_bound.pass.cpp +++ test/std/algorithms/alg.sorting/alg.binary.search/upper.bound/upper_bound.pass.cpp @@ -17,6 +17,7 @@ #include #include #include +#include #include "test_iterators.h" @@ -39,7 +40,7 @@ const unsigned M = 10; std::vector v(N); int x = 0; - for (int i = 0; i < v.size(); ++i) + for (std::size_t i = 0; i < v.size(); ++i) { v[i] = x; if (++x == M) Index: test/std/algorithms/alg.sorting/alg.binary.search/upper.bound/upper_bound_comp.pass.cpp =================================================================== --- test/std/algorithms/alg.sorting/alg.binary.search/upper.bound/upper_bound_comp.pass.cpp +++ test/std/algorithms/alg.sorting/alg.binary.search/upper.bound/upper_bound_comp.pass.cpp @@ -18,6 +18,7 @@ #include #include #include +#include #include "test_iterators.h" @@ -40,7 +41,7 @@ const unsigned M = 10; std::vector v(N); int x = 0; - for (int i = 0; i < v.size(); ++i) + for (std::size_t i = 0; i < v.size(); ++i) { v[i] = x; if (++x == M) Index: test/std/containers/container.adaptors/queue/queue.cons.alloc/ctor_container_alloc.pass.cpp =================================================================== --- test/std/containers/container.adaptors/queue/queue.cons.alloc/ctor_container_alloc.pass.cpp +++ test/std/containers/container.adaptors/queue/queue.cons.alloc/ctor_container_alloc.pass.cpp @@ -14,6 +14,7 @@ #include #include +#include #include "test_allocator.h" @@ -49,7 +50,7 @@ test q(d, test_allocator(4)); assert(q.get_allocator() == test_allocator(4)); assert(q.size() == 5); - for (int i = 0; i < d.size(); ++i) + for (std::size_t i = 0; i < d.size(); ++i) { assert(q.front() == d[i]); q.pop(); Index: test/std/containers/container.adaptors/queue/queue.cons/ctor_container.pass.cpp =================================================================== --- test/std/containers/container.adaptors/queue/queue.cons/ctor_container.pass.cpp +++ test/std/containers/container.adaptors/queue/queue.cons/ctor_container.pass.cpp @@ -13,6 +13,7 @@ #include #include +#include template C @@ -29,7 +30,7 @@ std::deque d = make >(5); std::queue q(d); assert(q.size() == 5); - for (int i = 0; i < d.size(); ++i) + for (std::size_t i = 0; i < d.size(); ++i) { assert(q.front() == d[i]); q.pop(); Index: test/std/containers/container.adaptors/stack/stack.cons.alloc/ctor_container_alloc.pass.cpp =================================================================== --- test/std/containers/container.adaptors/stack/stack.cons.alloc/ctor_container_alloc.pass.cpp +++ test/std/containers/container.adaptors/stack/stack.cons.alloc/ctor_container_alloc.pass.cpp @@ -14,6 +14,7 @@ #include #include +#include #include "test_allocator.h" @@ -49,7 +50,7 @@ test q(d, test_allocator(4)); assert(q.get_allocator() == test_allocator(4)); assert(q.size() == 5); - for (int i = 0; i < d.size(); ++i) + for (std::size_t i = 0; i < d.size(); ++i) { assert(q.top() == d[d.size() - i - 1]); q.pop(); Index: test/std/containers/container.adaptors/stack/stack.cons/ctor_container.pass.cpp =================================================================== --- test/std/containers/container.adaptors/stack/stack.cons/ctor_container.pass.cpp +++ test/std/containers/container.adaptors/stack/stack.cons/ctor_container.pass.cpp @@ -13,6 +13,7 @@ #include #include +#include template C @@ -29,7 +30,7 @@ std::deque d = make >(5); std::stack q(d); assert(q.size() == 5); - for (int i = 0; i < d.size(); ++i) + for (std::size_t i = 0; i < d.size(); ++i) { assert(q.top() == d[d.size() - i - 1]); q.pop(); Index: test/std/containers/sequences/deque/deque.capacity/resize_size.pass.cpp =================================================================== --- test/std/containers/sequences/deque/deque.capacity/resize_size.pass.cpp +++ test/std/containers/sequences/deque/deque.capacity/resize_size.pass.cpp @@ -15,6 +15,7 @@ #include #include #include +#include #include "test_macros.h" #include "min_allocator.h" @@ -53,7 +54,7 @@ CI i = c1.begin(); for (int j = 0; j < std::min(c1_osize, c1.size()); ++j, ++i) assert(*i == j); - for (int j = c1_osize; j < c1.size(); ++j, ++i) + for (std::size_t j = c1_osize; j < c1.size(); ++j, ++i) assert(*i == 0); } Index: test/std/containers/sequences/deque/deque.capacity/resize_size_value.pass.cpp =================================================================== --- test/std/containers/sequences/deque/deque.capacity/resize_size_value.pass.cpp +++ test/std/containers/sequences/deque/deque.capacity/resize_size_value.pass.cpp @@ -15,6 +15,7 @@ #include #include #include +#include #include "test_macros.h" #include "min_allocator.h" @@ -53,7 +54,7 @@ CI i = c1.begin(); for (int j = 0; j < std::min(c1_osize, c1.size()); ++j, ++i) assert(*i == j); - for (int j = c1_osize; j < c1.size(); ++j, ++i) + for (std::size_t j = c1_osize; j < c1.size(); ++j, ++i) assert(*i == x); } Index: test/std/containers/sequences/vector.bool/push_back.pass.cpp =================================================================== --- test/std/containers/sequences/vector.bool/push_back.pass.cpp +++ test/std/containers/sequences/vector.bool/push_back.pass.cpp @@ -14,6 +14,7 @@ #include #include +#include #include "min_allocator.h" @@ -27,7 +28,7 @@ { c.push_back(a[i]); assert(c.size() == i+1); - for (int j = 0; j < c.size(); ++j) + for (std::size_t j = 0; j < c.size(); ++j) assert(c[j] == a[j]); } } @@ -40,7 +41,7 @@ { c.push_back(a[i]); assert(c.size() == i+1); - for (int j = 0; j < c.size(); ++j) + for (std::size_t j = 0; j < c.size(); ++j) assert(c[j] == a[j]); } } Index: test/std/input.output/string.streams/stringstream.cons/move2.pass.cpp =================================================================== --- test/std/input.output/string.streams/stringstream.cons/move2.pass.cpp +++ test/std/input.output/string.streams/stringstream.cons/move2.pass.cpp @@ -18,6 +18,7 @@ #include #include #include +#include int main() { @@ -27,7 +28,7 @@ vecis.back().str("hub started at [00 6b 8b 45 69]"); vecis.push_back(std::istringstream()); vecis.back().str("hub started at [00 6b 8b 45 69]"); - for (int n = 0; n < vecis.size(); n++) + for (std::size_t n = 0; n < vecis.size(); n++) { assert(vecis[n].str().size() == 31); vecis[n].seekg(0, std::ios_base::beg); Index: test/std/numerics/numarray/template.valarray/valarray.assign/copy_assign.pass.cpp =================================================================== --- test/std/numerics/numarray/template.valarray/valarray.assign/copy_assign.pass.cpp +++ test/std/numerics/numarray/template.valarray/valarray.assign/copy_assign.pass.cpp @@ -15,6 +15,7 @@ #include #include +#include int main() { @@ -26,7 +27,7 @@ std::valarray v2; v2 = v; assert(v2.size() == v.size()); - for (int i = 0; i < v2.size(); ++i) + for (std::size_t i = 0; i < v2.size(); ++i) assert(v2[i] == v[i]); } { @@ -37,7 +38,7 @@ std::valarray v2; v2 = v; assert(v2.size() == v.size()); - for (int i = 0; i < v2.size(); ++i) + for (std::size_t i = 0; i < v2.size(); ++i) assert(v2[i] == v[i]); } { @@ -51,7 +52,7 @@ for (int i = 0; i < N; ++i) { assert(v2[i].size() == v[i].size()); - for (int j = 0; j < v[i].size(); ++j) + for (std::size_t j = 0; j < v[i].size(); ++j) assert(v2[i][j] == v[i][j]); } } Index: test/std/numerics/numarray/template.valarray/valarray.assign/initializer_list_assign.pass.cpp =================================================================== --- test/std/numerics/numarray/template.valarray/valarray.assign/initializer_list_assign.pass.cpp +++ test/std/numerics/numarray/template.valarray/valarray.assign/initializer_list_assign.pass.cpp @@ -15,6 +15,7 @@ #include #include +#include int main() { @@ -26,7 +27,7 @@ std::valarray v2; v2 = {1, 2, 3, 4, 5}; assert(v2.size() == N); - for (int i = 0; i < v2.size(); ++i) + for (std::size_t i = 0; i < v2.size(); ++i) assert(v2[i] == a[i]); } { @@ -36,7 +37,7 @@ std::valarray v2; v2 = {1, 2.5, 3, 4.25, 5}; assert(v2.size() == N); - for (int i = 0; i < v2.size(); ++i) + for (std::size_t i = 0; i < v2.size(); ++i) assert(v2[i] == a[i]); } { @@ -49,7 +50,7 @@ for (int i = 0; i < N; ++i) { assert(v2[i].size() == a[i].size()); - for (int j = 0; j < a[i].size(); ++j) + for (std::size_t j = 0; j < a[i].size(); ++j) assert(v2[i][j] == a[i][j]); } } Index: test/std/numerics/numarray/template.valarray/valarray.assign/move_assign.pass.cpp =================================================================== --- test/std/numerics/numarray/template.valarray/valarray.assign/move_assign.pass.cpp +++ test/std/numerics/numarray/template.valarray/valarray.assign/move_assign.pass.cpp @@ -15,6 +15,7 @@ #include #include +#include int main() { @@ -28,7 +29,7 @@ v2 = std::move(v); assert(v2.size() == N); assert(v.size() == 0); - for (int i = 0; i < v2.size(); ++i) + for (std::size_t i = 0; i < v2.size(); ++i) assert(v2[i] == a[i]); } { @@ -40,7 +41,7 @@ v2 = std::move(v); assert(v2.size() == N); assert(v.size() == 0); - for (int i = 0; i < v2.size(); ++i) + for (std::size_t i = 0; i < v2.size(); ++i) assert(v2[i] == a[i]); } { @@ -55,7 +56,7 @@ for (int i = 0; i < N; ++i) { assert(v2[i].size() == a[i].size()); - for (int j = 0; j < a[i].size(); ++j) + for (std::size_t j = 0; j < a[i].size(); ++j) assert(v2[i][j] == a[i][j]); } } Index: test/std/numerics/numarray/template.valarray/valarray.assign/value_assign.pass.cpp =================================================================== --- test/std/numerics/numarray/template.valarray/valarray.assign/value_assign.pass.cpp +++ test/std/numerics/numarray/template.valarray/valarray.assign/value_assign.pass.cpp @@ -15,6 +15,7 @@ #include #include +#include int main() { @@ -25,7 +26,7 @@ std::valarray v(a, N); v = 7; assert(v.size() == N); - for (int i = 0; i < v.size(); ++i) + for (std::size_t i = 0; i < v.size(); ++i) assert(v[i] == 7); } } Index: test/std/numerics/numarray/template.valarray/valarray.cassign/and_valarray.pass.cpp =================================================================== --- test/std/numerics/numarray/template.valarray/valarray.cassign/and_valarray.pass.cpp +++ test/std/numerics/numarray/template.valarray/valarray.cassign/and_valarray.pass.cpp @@ -15,6 +15,7 @@ #include #include +#include int main() { @@ -30,7 +31,7 @@ v1 &= v2; assert(v1.size() == v2.size()); assert(v1.size() == v3.size()); - for (int i = 0; i < v1.size(); ++i) + for (std::size_t i = 0; i < v1.size(); ++i) assert(v1[i] == v3[i]); } } Index: test/std/numerics/numarray/template.valarray/valarray.cassign/and_value.pass.cpp =================================================================== --- test/std/numerics/numarray/template.valarray/valarray.cassign/and_value.pass.cpp +++ test/std/numerics/numarray/template.valarray/valarray.cassign/and_value.pass.cpp @@ -15,6 +15,7 @@ #include #include +#include int main() { @@ -27,7 +28,7 @@ std::valarray v2(a2, N); v1 &= 3; assert(v1.size() == v2.size()); - for (int i = 0; i < v1.size(); ++i) + for (std::size_t i = 0; i < v1.size(); ++i) assert(v1[i] == v2[i]); } } Index: test/std/numerics/numarray/template.valarray/valarray.cassign/divide_valarray.pass.cpp =================================================================== --- test/std/numerics/numarray/template.valarray/valarray.cassign/divide_valarray.pass.cpp +++ test/std/numerics/numarray/template.valarray/valarray.cassign/divide_valarray.pass.cpp @@ -15,6 +15,7 @@ #include #include +#include int main() { @@ -30,7 +31,7 @@ v3 /= v2; assert(v1.size() == v2.size()); assert(v1.size() == v3.size()); - for (int i = 0; i < v1.size(); ++i) + for (std::size_t i = 0; i < v1.size(); ++i) assert(v1[i] == v3[i]); } } Index: test/std/numerics/numarray/template.valarray/valarray.cassign/divide_value.pass.cpp =================================================================== --- test/std/numerics/numarray/template.valarray/valarray.cassign/divide_value.pass.cpp +++ test/std/numerics/numarray/template.valarray/valarray.cassign/divide_value.pass.cpp @@ -15,6 +15,7 @@ #include #include +#include int main() { @@ -27,7 +28,7 @@ std::valarray v2(a2, N); v2 /= 6; assert(v1.size() == v2.size()); - for (int i = 0; i < v1.size(); ++i) + for (std::size_t i = 0; i < v1.size(); ++i) assert(v1[i] == v2[i]); } } Index: test/std/numerics/numarray/template.valarray/valarray.cassign/minus_valarray.pass.cpp =================================================================== --- test/std/numerics/numarray/template.valarray/valarray.cassign/minus_valarray.pass.cpp +++ test/std/numerics/numarray/template.valarray/valarray.cassign/minus_valarray.pass.cpp @@ -15,6 +15,7 @@ #include #include +#include int main() { @@ -30,7 +31,7 @@ v3 -= v2; assert(v1.size() == v2.size()); assert(v1.size() == v3.size()); - for (int i = 0; i < v1.size(); ++i) + for (std::size_t i = 0; i < v1.size(); ++i) assert(v1[i] == v3[i]); } } Index: test/std/numerics/numarray/template.valarray/valarray.cassign/minus_value.pass.cpp =================================================================== --- test/std/numerics/numarray/template.valarray/valarray.cassign/minus_value.pass.cpp +++ test/std/numerics/numarray/template.valarray/valarray.cassign/minus_value.pass.cpp @@ -15,6 +15,7 @@ #include #include +#include int main() { @@ -27,7 +28,7 @@ std::valarray v2(a2, N); v1 -= 3; assert(v1.size() == v2.size()); - for (int i = 0; i < v1.size(); ++i) + for (std::size_t i = 0; i < v1.size(); ++i) assert(v1[i] == v2[i]); } } Index: test/std/numerics/numarray/template.valarray/valarray.cassign/modulo_valarray.pass.cpp =================================================================== --- test/std/numerics/numarray/template.valarray/valarray.cassign/modulo_valarray.pass.cpp +++ test/std/numerics/numarray/template.valarray/valarray.cassign/modulo_valarray.pass.cpp @@ -15,6 +15,7 @@ #include #include +#include int main() { @@ -30,7 +31,7 @@ v2 %= v1; assert(v1.size() == v2.size()); assert(v1.size() == v3.size()); - for (int i = 0; i < v1.size(); ++i) + for (std::size_t i = 0; i < v1.size(); ++i) assert(v2[i] == v3[i]); } } Index: test/std/numerics/numarray/template.valarray/valarray.cassign/modulo_value.pass.cpp =================================================================== --- test/std/numerics/numarray/template.valarray/valarray.cassign/modulo_value.pass.cpp +++ test/std/numerics/numarray/template.valarray/valarray.cassign/modulo_value.pass.cpp @@ -15,6 +15,7 @@ #include #include +#include int main() { @@ -27,7 +28,7 @@ std::valarray v2(a2, N); v1 %= 3; assert(v1.size() == v2.size()); - for (int i = 0; i < v1.size(); ++i) + for (std::size_t i = 0; i < v1.size(); ++i) assert(v1[i] == v2[i]); } } Index: test/std/numerics/numarray/template.valarray/valarray.cassign/or_valarray.pass.cpp =================================================================== --- test/std/numerics/numarray/template.valarray/valarray.cassign/or_valarray.pass.cpp +++ test/std/numerics/numarray/template.valarray/valarray.cassign/or_valarray.pass.cpp @@ -15,6 +15,7 @@ #include #include +#include int main() { @@ -30,7 +31,7 @@ v1 |= v2; assert(v1.size() == v2.size()); assert(v1.size() == v3.size()); - for (int i = 0; i < v1.size(); ++i) + for (std::size_t i = 0; i < v1.size(); ++i) assert(v1[i] == v3[i]); } } Index: test/std/numerics/numarray/template.valarray/valarray.cassign/or_value.pass.cpp =================================================================== --- test/std/numerics/numarray/template.valarray/valarray.cassign/or_value.pass.cpp +++ test/std/numerics/numarray/template.valarray/valarray.cassign/or_value.pass.cpp @@ -15,6 +15,7 @@ #include #include +#include int main() { @@ -27,7 +28,7 @@ std::valarray v2(a2, N); v1 |= 3; assert(v1.size() == v2.size()); - for (int i = 0; i < v1.size(); ++i) + for (std::size_t i = 0; i < v1.size(); ++i) assert(v1[i] == v2[i]); } } Index: test/std/numerics/numarray/template.valarray/valarray.cassign/plus_valarray.pass.cpp =================================================================== --- test/std/numerics/numarray/template.valarray/valarray.cassign/plus_valarray.pass.cpp +++ test/std/numerics/numarray/template.valarray/valarray.cassign/plus_valarray.pass.cpp @@ -15,6 +15,7 @@ #include #include +#include int main() { @@ -30,7 +31,7 @@ v1 += v2; assert(v1.size() == v2.size()); assert(v1.size() == v3.size()); - for (int i = 0; i < v1.size(); ++i) + for (std::size_t i = 0; i < v1.size(); ++i) assert(v1[i] == v3[i]); } } Index: test/std/numerics/numarray/template.valarray/valarray.cassign/plus_value.pass.cpp =================================================================== --- test/std/numerics/numarray/template.valarray/valarray.cassign/plus_value.pass.cpp +++ test/std/numerics/numarray/template.valarray/valarray.cassign/plus_value.pass.cpp @@ -15,6 +15,7 @@ #include #include +#include int main() { @@ -27,7 +28,7 @@ std::valarray v2(a2, N); v1 += 3; assert(v1.size() == v2.size()); - for (int i = 0; i < v1.size(); ++i) + for (std::size_t i = 0; i < v1.size(); ++i) assert(v1[i] == v2[i]); } } Index: test/std/numerics/numarray/template.valarray/valarray.cassign/shift_left_valarray.pass.cpp =================================================================== --- test/std/numerics/numarray/template.valarray/valarray.cassign/shift_left_valarray.pass.cpp +++ test/std/numerics/numarray/template.valarray/valarray.cassign/shift_left_valarray.pass.cpp @@ -15,6 +15,7 @@ #include #include +#include int main() { @@ -30,7 +31,7 @@ v1 <<= v2; assert(v1.size() == v2.size()); assert(v1.size() == v3.size()); - for (int i = 0; i < v1.size(); ++i) + for (std::size_t i = 0; i < v1.size(); ++i) assert(v1[i] == v3[i]); } } Index: test/std/numerics/numarray/template.valarray/valarray.cassign/shift_left_value.pass.cpp =================================================================== --- test/std/numerics/numarray/template.valarray/valarray.cassign/shift_left_value.pass.cpp +++ test/std/numerics/numarray/template.valarray/valarray.cassign/shift_left_value.pass.cpp @@ -15,6 +15,7 @@ #include #include +#include int main() { @@ -27,7 +28,7 @@ std::valarray v2(a2, N); v1 <<= 3; assert(v1.size() == v2.size()); - for (int i = 0; i < v1.size(); ++i) + for (std::size_t i = 0; i < v1.size(); ++i) assert(v1[i] == v2[i]); } } Index: test/std/numerics/numarray/template.valarray/valarray.cassign/shift_right_valarray.pass.cpp =================================================================== --- test/std/numerics/numarray/template.valarray/valarray.cassign/shift_right_valarray.pass.cpp +++ test/std/numerics/numarray/template.valarray/valarray.cassign/shift_right_valarray.pass.cpp @@ -15,6 +15,7 @@ #include #include +#include int main() { @@ -30,7 +31,7 @@ v3 >>= v2; assert(v1.size() == v2.size()); assert(v1.size() == v3.size()); - for (int i = 0; i < v1.size(); ++i) + for (std::size_t i = 0; i < v1.size(); ++i) assert(v1[i] == v3[i]); } } Index: test/std/numerics/numarray/template.valarray/valarray.cassign/shift_right_value.pass.cpp =================================================================== --- test/std/numerics/numarray/template.valarray/valarray.cassign/shift_right_value.pass.cpp +++ test/std/numerics/numarray/template.valarray/valarray.cassign/shift_right_value.pass.cpp @@ -15,6 +15,7 @@ #include #include +#include int main() { @@ -27,7 +28,7 @@ std::valarray v2(a2, N); v2 >>= 3; assert(v1.size() == v2.size()); - for (int i = 0; i < v1.size(); ++i) + for (std::size_t i = 0; i < v1.size(); ++i) assert(v1[i] == v2[i]); } } Index: test/std/numerics/numarray/template.valarray/valarray.cassign/times_valarray.pass.cpp =================================================================== --- test/std/numerics/numarray/template.valarray/valarray.cassign/times_valarray.pass.cpp +++ test/std/numerics/numarray/template.valarray/valarray.cassign/times_valarray.pass.cpp @@ -15,6 +15,7 @@ #include #include +#include int main() { @@ -30,7 +31,7 @@ v1 *= v2; assert(v1.size() == v2.size()); assert(v1.size() == v3.size()); - for (int i = 0; i < v1.size(); ++i) + for (std::size_t i = 0; i < v1.size(); ++i) assert(v1[i] == v3[i]); } } Index: test/std/numerics/numarray/template.valarray/valarray.cassign/times_value.pass.cpp =================================================================== --- test/std/numerics/numarray/template.valarray/valarray.cassign/times_value.pass.cpp +++ test/std/numerics/numarray/template.valarray/valarray.cassign/times_value.pass.cpp @@ -15,6 +15,7 @@ #include #include +#include int main() { @@ -27,7 +28,7 @@ std::valarray v2(a2, N); v1 *= 6; assert(v1.size() == v2.size()); - for (int i = 0; i < v1.size(); ++i) + for (std::size_t i = 0; i < v1.size(); ++i) assert(v1[i] == v2[i]); } } Index: test/std/numerics/numarray/template.valarray/valarray.cassign/xor_valarray.pass.cpp =================================================================== --- test/std/numerics/numarray/template.valarray/valarray.cassign/xor_valarray.pass.cpp +++ test/std/numerics/numarray/template.valarray/valarray.cassign/xor_valarray.pass.cpp @@ -15,6 +15,7 @@ #include #include +#include int main() { @@ -30,7 +31,7 @@ v1 ^= v2; assert(v1.size() == v2.size()); assert(v1.size() == v3.size()); - for (int i = 0; i < v1.size(); ++i) + for (std::size_t i = 0; i < v1.size(); ++i) assert(v1[i] == v3[i]); } } Index: test/std/numerics/numarray/template.valarray/valarray.cassign/xor_value.pass.cpp =================================================================== --- test/std/numerics/numarray/template.valarray/valarray.cassign/xor_value.pass.cpp +++ test/std/numerics/numarray/template.valarray/valarray.cassign/xor_value.pass.cpp @@ -15,6 +15,7 @@ #include #include +#include int main() { @@ -27,7 +28,7 @@ std::valarray v2(a2, N); v1 ^= 3; assert(v1.size() == v2.size()); - for (int i = 0; i < v1.size(); ++i) + for (std::size_t i = 0; i < v1.size(); ++i) assert(v1[i] == v2[i]); } } Index: test/std/numerics/numarray/template.valarray/valarray.cons/copy.pass.cpp =================================================================== --- test/std/numerics/numarray/template.valarray/valarray.cons/copy.pass.cpp +++ test/std/numerics/numarray/template.valarray/valarray.cons/copy.pass.cpp @@ -15,6 +15,7 @@ #include #include +#include int main() { @@ -25,7 +26,7 @@ std::valarray v(a, N); std::valarray v2 = v; assert(v2.size() == v.size()); - for (int i = 0; i < v2.size(); ++i) + for (std::size_t i = 0; i < v2.size(); ++i) assert(v2[i] == v[i]); } { @@ -35,7 +36,7 @@ std::valarray v(a, N); std::valarray v2 = v; assert(v2.size() == v.size()); - for (int i = 0; i < v2.size(); ++i) + for (std::size_t i = 0; i < v2.size(); ++i) assert(v2[i] == v[i]); } { @@ -48,7 +49,7 @@ for (int i = 0; i < N; ++i) { assert(v2[i].size() == v[i].size()); - for (int j = 0; j < v[i].size(); ++j) + for (std::size_t j = 0; j < v[i].size(); ++j) assert(v2[i][j] == v[i][j]); } } Index: test/std/numerics/numarray/template.valarray/valarray.cons/move.pass.cpp =================================================================== --- test/std/numerics/numarray/template.valarray/valarray.cons/move.pass.cpp +++ test/std/numerics/numarray/template.valarray/valarray.cons/move.pass.cpp @@ -16,6 +16,7 @@ #include #include #include +#include int main() { @@ -28,7 +29,7 @@ std::valarray v2 = std::move(v); assert(v2.size() == N); assert(v.size() == 0); - for (int i = 0; i < v2.size(); ++i) + for (std::size_t i = 0; i < v2.size(); ++i) assert(v2[i] == a[i]); } { @@ -39,7 +40,7 @@ std::valarray v2 = std::move(v); assert(v2.size() == N); assert(v.size() == 0); - for (int i = 0; i < v2.size(); ++i) + for (std::size_t i = 0; i < v2.size(); ++i) assert(v2[i] == a[i]); } { @@ -53,7 +54,7 @@ for (int i = 0; i < N; ++i) { assert(v2[i].size() == a[i].size()); - for (int j = 0; j < v2[i].size(); ++j) + for (std::size_t j = 0; j < v2[i].size(); ++j) assert(v2[i][j] == a[i][j]); } } Index: test/std/numerics/numarray/template.valarray/valarray.cons/pointer_size.pass.cpp =================================================================== --- test/std/numerics/numarray/template.valarray/valarray.cons/pointer_size.pass.cpp +++ test/std/numerics/numarray/template.valarray/valarray.cons/pointer_size.pass.cpp @@ -15,6 +15,7 @@ #include #include +#include int main() { @@ -45,7 +46,7 @@ for (int i = 0; i < N; ++i) { assert(v[i].size() == a[i].size()); - for (int j = 0; j < v[i].size(); ++j) + for (std::size_t j = 0; j < v[i].size(); ++j) assert(v[i][j] == a[i][j]); } } Index: test/std/numerics/numarray/template.valarray/valarray.members/resize.pass.cpp =================================================================== --- test/std/numerics/numarray/template.valarray/valarray.members/resize.pass.cpp +++ test/std/numerics/numarray/template.valarray/valarray.members/resize.pass.cpp @@ -15,6 +15,7 @@ #include #include +#include int main() { @@ -25,17 +26,17 @@ std::valarray v1(a1, N1); v1.resize(8); assert(v1.size() == 8); - for (int i = 0; i < v1.size(); ++i) + for (std::size_t i = 0; i < v1.size(); ++i) assert(v1[i] == 0); v1.resize(0); assert(v1.size() == 0); v1.resize(80); assert(v1.size() == 80); - for (int i = 0; i < v1.size(); ++i) + for (std::size_t i = 0; i < v1.size(); ++i) assert(v1[i] == 0); v1.resize(40); assert(v1.size() == 40); - for (int i = 0; i < v1.size(); ++i) + for (std::size_t i = 0; i < v1.size(); ++i) assert(v1[i] == 0); } } Index: test/std/numerics/numarray/template.valarray/valarray.members/swap.pass.cpp =================================================================== --- test/std/numerics/numarray/template.valarray/valarray.members/swap.pass.cpp +++ test/std/numerics/numarray/template.valarray/valarray.members/swap.pass.cpp @@ -15,6 +15,7 @@ #include #include +#include int main() { @@ -30,10 +31,10 @@ std::valarray v2_save = v2; v1.swap(v2); assert(v1.size() == v2_save.size()); - for (int i = 0; i < v1.size(); ++i) + for (std::size_t i = 0; i < v1.size(); ++i) assert(v1[i] == v2_save[i]); assert(v2.size() == v1_save.size()); - for (int i = 0; i < v2.size(); ++i) + for (std::size_t i = 0; i < v2.size(); ++i) assert(v2[i] == v1_save[i]); } { @@ -47,10 +48,10 @@ std::valarray v2_save = v2; v1.swap(v2); assert(v1.size() == v2_save.size()); - for (int i = 0; i < v1.size(); ++i) + for (std::size_t i = 0; i < v1.size(); ++i) assert(v1[i] == v2_save[i]); assert(v2.size() == v1_save.size()); - for (int i = 0; i < v2.size(); ++i) + for (std::size_t i = 0; i < v2.size(); ++i) assert(v2[i] == v1_save[i]); } { @@ -64,10 +65,10 @@ std::valarray v2_save = v2; v1.swap(v2); assert(v1.size() == v2_save.size()); - for (int i = 0; i < v1.size(); ++i) + for (std::size_t i = 0; i < v1.size(); ++i) assert(v1[i] == v2_save[i]); assert(v2.size() == v1_save.size()); - for (int i = 0; i < v2.size(); ++i) + for (std::size_t i = 0; i < v2.size(); ++i) assert(v2[i] == v1_save[i]); } { @@ -80,10 +81,10 @@ std::valarray v2_save = v2; v1.swap(v2); assert(v1.size() == v2_save.size()); - for (int i = 0; i < v1.size(); ++i) + for (std::size_t i = 0; i < v1.size(); ++i) assert(v1[i] == v2_save[i]); assert(v2.size() == v1_save.size()); - for (int i = 0; i < v2.size(); ++i) + for (std::size_t i = 0; i < v2.size(); ++i) assert(v2[i] == v1_save[i]); } } Index: test/std/numerics/numarray/template.valarray/valarray.unary/bit_not.pass.cpp =================================================================== --- test/std/numerics/numarray/template.valarray/valarray.unary/bit_not.pass.cpp +++ test/std/numerics/numarray/template.valarray/valarray.unary/bit_not.pass.cpp @@ -15,6 +15,7 @@ #include #include +#include int main() { @@ -25,7 +26,7 @@ std::valarray v(a, N); std::valarray v2 = ~v; assert(v2.size() == v.size()); - for (int i = 0; i < v2.size(); ++i) + for (std::size_t i = 0; i < v2.size(); ++i) assert(v2[i] == ~v[i]); } { @@ -38,7 +39,7 @@ for (int i = 0; i < N; ++i) { assert(v2[i].size() == v[i].size()); - for (int j = 0; j < v[i].size(); ++j) + for (std::size_t j = 0; j < v[i].size(); ++j) assert(v2[i][j] == ~v[i][j]); } } @@ -49,7 +50,7 @@ std::valarray v(a, N); std::valarray v2 = ~(v + v); assert(v2.size() == v.size()); - for (int i = 0; i < v2.size(); ++i) + for (std::size_t i = 0; i < v2.size(); ++i) assert(v2[i] == ~(2*v[i])); } } Index: test/std/numerics/numarray/template.valarray/valarray.unary/negate.pass.cpp =================================================================== --- test/std/numerics/numarray/template.valarray/valarray.unary/negate.pass.cpp +++ test/std/numerics/numarray/template.valarray/valarray.unary/negate.pass.cpp @@ -15,6 +15,7 @@ #include #include +#include int main() { @@ -25,7 +26,7 @@ std::valarray v(a, N); std::valarray v2 = -v; assert(v2.size() == v.size()); - for (int i = 0; i < v2.size(); ++i) + for (std::size_t i = 0; i < v2.size(); ++i) assert(v2[i] == -v[i]); } { @@ -35,7 +36,7 @@ std::valarray v(a, N); std::valarray v2 = -v; assert(v2.size() == v.size()); - for (int i = 0; i < v2.size(); ++i) + for (std::size_t i = 0; i < v2.size(); ++i) assert(v2[i] == -v[i]); } { @@ -48,7 +49,7 @@ for (int i = 0; i < N; ++i) { assert(v2[i].size() == v[i].size()); - for (int j = 0; j < v[i].size(); ++j) + for (std::size_t j = 0; j < v[i].size(); ++j) assert(v2[i][j] == -v[i][j]); } } @@ -59,7 +60,7 @@ std::valarray v(a, N); std::valarray v2 = -(v + v); assert(v2.size() == v.size()); - for (int i = 0; i < v2.size(); ++i) + for (std::size_t i = 0; i < v2.size(); ++i) assert(v2[i] == -2*v[i]); } } Index: test/std/numerics/numarray/template.valarray/valarray.unary/not.pass.cpp =================================================================== --- test/std/numerics/numarray/template.valarray/valarray.unary/not.pass.cpp +++ test/std/numerics/numarray/template.valarray/valarray.unary/not.pass.cpp @@ -15,6 +15,7 @@ #include #include +#include int main() { @@ -25,7 +26,7 @@ std::valarray v(a, N); std::valarray v2 = !v; assert(v2.size() == v.size()); - for (int i = 0; i < v2.size(); ++i) + for (std::size_t i = 0; i < v2.size(); ++i) assert(v2[i] == !v[i]); } { @@ -35,7 +36,7 @@ std::valarray v(a, N); std::valarray v2 = !(v + v); assert(v2.size() == v.size()); - for (int i = 0; i < v2.size(); ++i) + for (std::size_t i = 0; i < v2.size(); ++i) assert(v2[i] == !(2 * v[i])); } } Index: test/std/numerics/numarray/template.valarray/valarray.unary/plus.pass.cpp =================================================================== --- test/std/numerics/numarray/template.valarray/valarray.unary/plus.pass.cpp +++ test/std/numerics/numarray/template.valarray/valarray.unary/plus.pass.cpp @@ -15,6 +15,7 @@ #include #include +#include int main() { @@ -25,7 +26,7 @@ std::valarray v(a, N); std::valarray v2 = +v; assert(v2.size() == v.size()); - for (int i = 0; i < v2.size(); ++i) + for (std::size_t i = 0; i < v2.size(); ++i) assert(v2[i] == +v[i]); } { @@ -35,7 +36,7 @@ std::valarray v(a, N); std::valarray v2 = +v; assert(v2.size() == v.size()); - for (int i = 0; i < v2.size(); ++i) + for (std::size_t i = 0; i < v2.size(); ++i) assert(v2[i] == +v[i]); } { @@ -48,7 +49,7 @@ for (int i = 0; i < N; ++i) { assert(v2[i].size() == v[i].size()); - for (int j = 0; j < v[i].size(); ++j) + for (std::size_t j = 0; j < v[i].size(); ++j) assert(v2[i][j] == +v[i][j]); } } @@ -59,7 +60,7 @@ std::valarray v(a, N); std::valarray v2 = +(v + v); assert(v2.size() == v.size()); - for (int i = 0; i < v2.size(); ++i) + for (std::size_t i = 0; i < v2.size(); ++i) assert(v2[i] == +2*v[i]); } } Index: test/std/numerics/numarray/valarray.nonmembers/valarray.binary/and_valarray_valarray.pass.cpp =================================================================== --- test/std/numerics/numarray/valarray.nonmembers/valarray.binary/and_valarray_valarray.pass.cpp +++ test/std/numerics/numarray/valarray.nonmembers/valarray.binary/and_valarray_valarray.pass.cpp @@ -15,6 +15,7 @@ #include #include +#include int main() { @@ -29,7 +30,7 @@ std::valarray v3 = v1 & v2; assert(v1.size() == v2.size()); assert(v1.size() == v3.size()); - for (int i = 0; i < v1.size(); ++i) + for (std::size_t i = 0; i < v1.size(); ++i) assert(v3[i] == a3[i]); } } Index: test/std/numerics/numarray/valarray.nonmembers/valarray.binary/and_valarray_value.pass.cpp =================================================================== --- test/std/numerics/numarray/valarray.nonmembers/valarray.binary/and_valarray_value.pass.cpp +++ test/std/numerics/numarray/valarray.nonmembers/valarray.binary/and_valarray_value.pass.cpp @@ -15,6 +15,7 @@ #include #include +#include int main() { @@ -26,7 +27,7 @@ std::valarray v1(a1, N); std::valarray v2 = v1 & 3; assert(v1.size() == v2.size()); - for (int i = 0; i < v2.size(); ++i) + for (std::size_t i = 0; i < v2.size(); ++i) assert(v2[i] == a2[i]); } } Index: test/std/numerics/numarray/valarray.nonmembers/valarray.binary/and_value_valarray.pass.cpp =================================================================== --- test/std/numerics/numarray/valarray.nonmembers/valarray.binary/and_value_valarray.pass.cpp +++ test/std/numerics/numarray/valarray.nonmembers/valarray.binary/and_value_valarray.pass.cpp @@ -15,6 +15,7 @@ #include #include +#include int main() { @@ -26,7 +27,7 @@ std::valarray v1(a1, N); std::valarray v2 = 3 & v1; assert(v1.size() == v2.size()); - for (int i = 0; i < v2.size(); ++i) + for (std::size_t i = 0; i < v2.size(); ++i) assert(v2[i] == a2[i]); } } Index: test/std/numerics/numarray/valarray.nonmembers/valarray.binary/divide_valarray_valarray.pass.cpp =================================================================== --- test/std/numerics/numarray/valarray.nonmembers/valarray.binary/divide_valarray_valarray.pass.cpp +++ test/std/numerics/numarray/valarray.nonmembers/valarray.binary/divide_valarray_valarray.pass.cpp @@ -15,6 +15,7 @@ #include #include +#include int main() { @@ -29,7 +30,7 @@ std::valarray v3 = v1 / v2; assert(v1.size() == v2.size()); assert(v1.size() == v3.size()); - for (int i = 0; i < v1.size(); ++i) + for (std::size_t i = 0; i < v1.size(); ++i) assert(v3[i] == a3[i]); } } Index: test/std/numerics/numarray/valarray.nonmembers/valarray.binary/divide_valarray_value.pass.cpp =================================================================== --- test/std/numerics/numarray/valarray.nonmembers/valarray.binary/divide_valarray_value.pass.cpp +++ test/std/numerics/numarray/valarray.nonmembers/valarray.binary/divide_valarray_value.pass.cpp @@ -15,6 +15,7 @@ #include #include +#include int main() { @@ -26,7 +27,7 @@ std::valarray v1(a1, N); std::valarray v2 = v1 / 6; assert(v1.size() == v2.size()); - for (int i = 0; i < v2.size(); ++i) + for (std::size_t i = 0; i < v2.size(); ++i) assert(v2[i] == a2[i]); } } Index: test/std/numerics/numarray/valarray.nonmembers/valarray.binary/divide_value_valarray.pass.cpp =================================================================== --- test/std/numerics/numarray/valarray.nonmembers/valarray.binary/divide_value_valarray.pass.cpp +++ test/std/numerics/numarray/valarray.nonmembers/valarray.binary/divide_value_valarray.pass.cpp @@ -15,6 +15,7 @@ #include #include +#include int main() { @@ -26,7 +27,7 @@ std::valarray v1(a1, N); std::valarray v2 = 3 / v1; assert(v1.size() == v2.size()); - for (int i = 0; i < v2.size(); ++i) + for (std::size_t i = 0; i < v2.size(); ++i) assert(v2[i] == a2[i]); } } Index: test/std/numerics/numarray/valarray.nonmembers/valarray.binary/minus_valarray_valarray.pass.cpp =================================================================== --- test/std/numerics/numarray/valarray.nonmembers/valarray.binary/minus_valarray_valarray.pass.cpp +++ test/std/numerics/numarray/valarray.nonmembers/valarray.binary/minus_valarray_valarray.pass.cpp @@ -15,6 +15,7 @@ #include #include +#include int main() { @@ -29,7 +30,7 @@ std::valarray v3 = v1 - v2; assert(v1.size() == v2.size()); assert(v1.size() == v3.size()); - for (int i = 0; i < v1.size(); ++i) + for (std::size_t i = 0; i < v1.size(); ++i) assert(v3[i] == a3[i]); } } Index: test/std/numerics/numarray/valarray.nonmembers/valarray.binary/minus_valarray_value.pass.cpp =================================================================== --- test/std/numerics/numarray/valarray.nonmembers/valarray.binary/minus_valarray_value.pass.cpp +++ test/std/numerics/numarray/valarray.nonmembers/valarray.binary/minus_valarray_value.pass.cpp @@ -15,6 +15,7 @@ #include #include +#include int main() { @@ -26,7 +27,7 @@ std::valarray v1(a1, N); std::valarray v2 = v1 - 3; assert(v1.size() == v2.size()); - for (int i = 0; i < v2.size(); ++i) + for (std::size_t i = 0; i < v2.size(); ++i) assert(v2[i] == a2[i]); } } Index: test/std/numerics/numarray/valarray.nonmembers/valarray.binary/minus_value_valarray.pass.cpp =================================================================== --- test/std/numerics/numarray/valarray.nonmembers/valarray.binary/minus_value_valarray.pass.cpp +++ test/std/numerics/numarray/valarray.nonmembers/valarray.binary/minus_value_valarray.pass.cpp @@ -15,6 +15,7 @@ #include #include +#include int main() { @@ -26,7 +27,7 @@ std::valarray v1(a1, N); std::valarray v2 = 3 - v1; assert(v1.size() == v2.size()); - for (int i = 0; i < v2.size(); ++i) + for (std::size_t i = 0; i < v2.size(); ++i) assert(v2[i] == a2[i]); } } Index: test/std/numerics/numarray/valarray.nonmembers/valarray.binary/modulo_valarray_valarray.pass.cpp =================================================================== --- test/std/numerics/numarray/valarray.nonmembers/valarray.binary/modulo_valarray_valarray.pass.cpp +++ test/std/numerics/numarray/valarray.nonmembers/valarray.binary/modulo_valarray_valarray.pass.cpp @@ -15,6 +15,7 @@ #include #include +#include int main() { @@ -29,7 +30,7 @@ std::valarray v3 = v1 % v2; assert(v1.size() == v2.size()); assert(v1.size() == v3.size()); - for (int i = 0; i < v1.size(); ++i) + for (std::size_t i = 0; i < v1.size(); ++i) assert(v3[i] == a3[i]); } } Index: test/std/numerics/numarray/valarray.nonmembers/valarray.binary/modulo_valarray_value.pass.cpp =================================================================== --- test/std/numerics/numarray/valarray.nonmembers/valarray.binary/modulo_valarray_value.pass.cpp +++ test/std/numerics/numarray/valarray.nonmembers/valarray.binary/modulo_valarray_value.pass.cpp @@ -15,6 +15,7 @@ #include #include +#include int main() { @@ -26,7 +27,7 @@ std::valarray v1(a1, N); std::valarray v2 = v1 % 3; assert(v1.size() == v2.size()); - for (int i = 0; i < v2.size(); ++i) + for (std::size_t i = 0; i < v2.size(); ++i) assert(v2[i] == a2[i]); } } Index: test/std/numerics/numarray/valarray.nonmembers/valarray.binary/modulo_value_valarray.pass.cpp =================================================================== --- test/std/numerics/numarray/valarray.nonmembers/valarray.binary/modulo_value_valarray.pass.cpp +++ test/std/numerics/numarray/valarray.nonmembers/valarray.binary/modulo_value_valarray.pass.cpp @@ -15,6 +15,7 @@ #include #include +#include int main() { @@ -26,7 +27,7 @@ std::valarray v1(a1, N); std::valarray v2 = 3 % v1; assert(v1.size() == v2.size()); - for (int i = 0; i < v2.size(); ++i) + for (std::size_t i = 0; i < v2.size(); ++i) assert(v2[i] == a2[i]); } } Index: test/std/numerics/numarray/valarray.nonmembers/valarray.binary/or_valarray_valarray.pass.cpp =================================================================== --- test/std/numerics/numarray/valarray.nonmembers/valarray.binary/or_valarray_valarray.pass.cpp +++ test/std/numerics/numarray/valarray.nonmembers/valarray.binary/or_valarray_valarray.pass.cpp @@ -15,6 +15,7 @@ #include #include +#include int main() { @@ -29,7 +30,7 @@ std::valarray v3 = v1 | v2; assert(v1.size() == v2.size()); assert(v1.size() == v3.size()); - for (int i = 0; i < v1.size(); ++i) + for (std::size_t i = 0; i < v1.size(); ++i) assert(v3[i] == a3[i]); } } Index: test/std/numerics/numarray/valarray.nonmembers/valarray.binary/or_valarray_value.pass.cpp =================================================================== --- test/std/numerics/numarray/valarray.nonmembers/valarray.binary/or_valarray_value.pass.cpp +++ test/std/numerics/numarray/valarray.nonmembers/valarray.binary/or_valarray_value.pass.cpp @@ -15,6 +15,7 @@ #include #include +#include int main() { @@ -26,7 +27,7 @@ std::valarray v1(a1, N); std::valarray v2 = v1 | 3; assert(v1.size() == v2.size()); - for (int i = 0; i < v2.size(); ++i) + for (std::size_t i = 0; i < v2.size(); ++i) assert(v2[i] == a2[i]); } } Index: test/std/numerics/numarray/valarray.nonmembers/valarray.binary/or_value_valarray.pass.cpp =================================================================== --- test/std/numerics/numarray/valarray.nonmembers/valarray.binary/or_value_valarray.pass.cpp +++ test/std/numerics/numarray/valarray.nonmembers/valarray.binary/or_value_valarray.pass.cpp @@ -15,6 +15,7 @@ #include #include +#include int main() { @@ -26,7 +27,7 @@ std::valarray v1(a1, N); std::valarray v2 = 3 | v1; assert(v1.size() == v2.size()); - for (int i = 0; i < v2.size(); ++i) + for (std::size_t i = 0; i < v2.size(); ++i) assert(v2[i] == a2[i]); } } Index: test/std/numerics/numarray/valarray.nonmembers/valarray.binary/plus_valarray_valarray.pass.cpp =================================================================== --- test/std/numerics/numarray/valarray.nonmembers/valarray.binary/plus_valarray_valarray.pass.cpp +++ test/std/numerics/numarray/valarray.nonmembers/valarray.binary/plus_valarray_valarray.pass.cpp @@ -15,6 +15,7 @@ #include #include +#include int main() { @@ -29,7 +30,7 @@ std::valarray v3 = v1 + v2; assert(v1.size() == v2.size()); assert(v1.size() == v3.size()); - for (int i = 0; i < v1.size(); ++i) + for (std::size_t i = 0; i < v1.size(); ++i) assert(v3[i] == a3[i]); } } Index: test/std/numerics/numarray/valarray.nonmembers/valarray.binary/plus_valarray_value.pass.cpp =================================================================== --- test/std/numerics/numarray/valarray.nonmembers/valarray.binary/plus_valarray_value.pass.cpp +++ test/std/numerics/numarray/valarray.nonmembers/valarray.binary/plus_valarray_value.pass.cpp @@ -15,6 +15,7 @@ #include #include +#include int main() { @@ -26,7 +27,7 @@ std::valarray v1(a1, N); std::valarray v2 = v1 + 3; assert(v1.size() == v2.size()); - for (int i = 0; i < v2.size(); ++i) + for (std::size_t i = 0; i < v2.size(); ++i) assert(v2[i] == a2[i]); } } Index: test/std/numerics/numarray/valarray.nonmembers/valarray.binary/plus_value_valarray.pass.cpp =================================================================== --- test/std/numerics/numarray/valarray.nonmembers/valarray.binary/plus_value_valarray.pass.cpp +++ test/std/numerics/numarray/valarray.nonmembers/valarray.binary/plus_value_valarray.pass.cpp @@ -15,6 +15,7 @@ #include #include +#include int main() { @@ -26,7 +27,7 @@ std::valarray v1(a1, N); std::valarray v2 = 3 + v1; assert(v1.size() == v2.size()); - for (int i = 0; i < v2.size(); ++i) + for (std::size_t i = 0; i < v2.size(); ++i) assert(v2[i] == a2[i]); } } Index: test/std/numerics/numarray/valarray.nonmembers/valarray.binary/shift_left_valarray_valarray.pass.cpp =================================================================== --- test/std/numerics/numarray/valarray.nonmembers/valarray.binary/shift_left_valarray_valarray.pass.cpp +++ test/std/numerics/numarray/valarray.nonmembers/valarray.binary/shift_left_valarray_valarray.pass.cpp @@ -15,6 +15,7 @@ #include #include +#include int main() { @@ -29,7 +30,7 @@ std::valarray v3 = v1 << v2; assert(v1.size() == v2.size()); assert(v1.size() == v3.size()); - for (int i = 0; i < v1.size(); ++i) + for (std::size_t i = 0; i < v1.size(); ++i) assert(v3[i] == a3[i]); } } Index: test/std/numerics/numarray/valarray.nonmembers/valarray.binary/shift_left_valarray_value.pass.cpp =================================================================== --- test/std/numerics/numarray/valarray.nonmembers/valarray.binary/shift_left_valarray_value.pass.cpp +++ test/std/numerics/numarray/valarray.nonmembers/valarray.binary/shift_left_valarray_value.pass.cpp @@ -15,6 +15,7 @@ #include #include +#include int main() { @@ -26,7 +27,7 @@ std::valarray v1(a1, N); std::valarray v2 = v1 << 3; assert(v1.size() == v2.size()); - for (int i = 0; i < v2.size(); ++i) + for (std::size_t i = 0; i < v2.size(); ++i) assert(v2[i] == a2[i]); } } Index: test/std/numerics/numarray/valarray.nonmembers/valarray.binary/shift_left_value_valarray.pass.cpp =================================================================== --- test/std/numerics/numarray/valarray.nonmembers/valarray.binary/shift_left_value_valarray.pass.cpp +++ test/std/numerics/numarray/valarray.nonmembers/valarray.binary/shift_left_value_valarray.pass.cpp @@ -15,6 +15,7 @@ #include #include +#include int main() { @@ -26,7 +27,7 @@ std::valarray v1(a1, N); std::valarray v2 = 3 << v1; assert(v1.size() == v2.size()); - for (int i = 0; i < v2.size(); ++i) + for (std::size_t i = 0; i < v2.size(); ++i) assert(v2[i] == a2[i]); } } Index: test/std/numerics/numarray/valarray.nonmembers/valarray.binary/shift_right_valarray_valarray.pass.cpp =================================================================== --- test/std/numerics/numarray/valarray.nonmembers/valarray.binary/shift_right_valarray_valarray.pass.cpp +++ test/std/numerics/numarray/valarray.nonmembers/valarray.binary/shift_right_valarray_valarray.pass.cpp @@ -15,6 +15,7 @@ #include #include +#include int main() { @@ -29,7 +30,7 @@ std::valarray v3 = v1 >> v2; assert(v1.size() == v2.size()); assert(v1.size() == v3.size()); - for (int i = 0; i < v1.size(); ++i) + for (std::size_t i = 0; i < v1.size(); ++i) assert(v3[i] == a3[i]); } } Index: test/std/numerics/numarray/valarray.nonmembers/valarray.binary/shift_right_valarray_value.pass.cpp =================================================================== --- test/std/numerics/numarray/valarray.nonmembers/valarray.binary/shift_right_valarray_value.pass.cpp +++ test/std/numerics/numarray/valarray.nonmembers/valarray.binary/shift_right_valarray_value.pass.cpp @@ -15,6 +15,7 @@ #include #include +#include int main() { @@ -26,7 +27,7 @@ std::valarray v1(a1, N); std::valarray v2 = v1 >> 3; assert(v1.size() == v2.size()); - for (int i = 0; i < v2.size(); ++i) + for (std::size_t i = 0; i < v2.size(); ++i) assert(v2[i] == a2[i]); } } Index: test/std/numerics/numarray/valarray.nonmembers/valarray.binary/shift_right_value_valarray.pass.cpp =================================================================== --- test/std/numerics/numarray/valarray.nonmembers/valarray.binary/shift_right_value_valarray.pass.cpp +++ test/std/numerics/numarray/valarray.nonmembers/valarray.binary/shift_right_value_valarray.pass.cpp @@ -15,6 +15,7 @@ #include #include +#include int main() { @@ -26,7 +27,7 @@ std::valarray v1(a1, N); std::valarray v2 = 40 >> v1; assert(v1.size() == v2.size()); - for (int i = 0; i < v2.size(); ++i) + for (std::size_t i = 0; i < v2.size(); ++i) assert(v2[i] == a2[i]); } } Index: test/std/numerics/numarray/valarray.nonmembers/valarray.binary/times_valarray_valarray.pass.cpp =================================================================== --- test/std/numerics/numarray/valarray.nonmembers/valarray.binary/times_valarray_valarray.pass.cpp +++ test/std/numerics/numarray/valarray.nonmembers/valarray.binary/times_valarray_valarray.pass.cpp @@ -15,6 +15,7 @@ #include #include +#include int main() { @@ -29,7 +30,7 @@ std::valarray v3 = v1 * v2; assert(v1.size() == v2.size()); assert(v1.size() == v3.size()); - for (int i = 0; i < v1.size(); ++i) + for (std::size_t i = 0; i < v1.size(); ++i) assert(v3[i] == a3[i]); } } Index: test/std/numerics/numarray/valarray.nonmembers/valarray.binary/times_valarray_value.pass.cpp =================================================================== --- test/std/numerics/numarray/valarray.nonmembers/valarray.binary/times_valarray_value.pass.cpp +++ test/std/numerics/numarray/valarray.nonmembers/valarray.binary/times_valarray_value.pass.cpp @@ -15,6 +15,7 @@ #include #include +#include int main() { @@ -26,7 +27,7 @@ std::valarray v1(a1, N); std::valarray v2 = v1 * 6; assert(v1.size() == v2.size()); - for (int i = 0; i < v2.size(); ++i) + for (std::size_t i = 0; i < v2.size(); ++i) assert(v2[i] == a2[i]); } } Index: test/std/numerics/numarray/valarray.nonmembers/valarray.binary/times_value_valarray.pass.cpp =================================================================== --- test/std/numerics/numarray/valarray.nonmembers/valarray.binary/times_value_valarray.pass.cpp +++ test/std/numerics/numarray/valarray.nonmembers/valarray.binary/times_value_valarray.pass.cpp @@ -15,6 +15,7 @@ #include #include +#include int main() { @@ -26,7 +27,7 @@ std::valarray v1(a1, N); std::valarray v2 = 6 * v1; assert(v1.size() == v2.size()); - for (int i = 0; i < v2.size(); ++i) + for (std::size_t i = 0; i < v2.size(); ++i) assert(v2[i] == a2[i]); } } Index: test/std/numerics/numarray/valarray.nonmembers/valarray.binary/xor_valarray_valarray.pass.cpp =================================================================== --- test/std/numerics/numarray/valarray.nonmembers/valarray.binary/xor_valarray_valarray.pass.cpp +++ test/std/numerics/numarray/valarray.nonmembers/valarray.binary/xor_valarray_valarray.pass.cpp @@ -15,6 +15,7 @@ #include #include +#include int main() { @@ -29,7 +30,7 @@ std::valarray v3 = v1 ^ v2; assert(v1.size() == v2.size()); assert(v1.size() == v3.size()); - for (int i = 0; i < v1.size(); ++i) + for (std::size_t i = 0; i < v1.size(); ++i) assert(v3[i] == a3[i]); } } Index: test/std/numerics/numarray/valarray.nonmembers/valarray.binary/xor_valarray_value.pass.cpp =================================================================== --- test/std/numerics/numarray/valarray.nonmembers/valarray.binary/xor_valarray_value.pass.cpp +++ test/std/numerics/numarray/valarray.nonmembers/valarray.binary/xor_valarray_value.pass.cpp @@ -15,6 +15,7 @@ #include #include +#include int main() { @@ -26,7 +27,7 @@ std::valarray v1(a1, N); std::valarray v2 = v1 ^ 3; assert(v1.size() == v2.size()); - for (int i = 0; i < v2.size(); ++i) + for (std::size_t i = 0; i < v2.size(); ++i) assert(v2[i] == a2[i]); } } Index: test/std/numerics/numarray/valarray.nonmembers/valarray.binary/xor_value_valarray.pass.cpp =================================================================== --- test/std/numerics/numarray/valarray.nonmembers/valarray.binary/xor_value_valarray.pass.cpp +++ test/std/numerics/numarray/valarray.nonmembers/valarray.binary/xor_value_valarray.pass.cpp @@ -15,6 +15,7 @@ #include #include +#include int main() { @@ -26,7 +27,7 @@ std::valarray v1(a1, N); std::valarray v2 = 3 ^ v1; assert(v1.size() == v2.size()); - for (int i = 0; i < v2.size(); ++i) + for (std::size_t i = 0; i < v2.size(); ++i) assert(v2[i] == a2[i]); } } Index: test/std/numerics/numarray/valarray.nonmembers/valarray.comparison/and_valarray_valarray.pass.cpp =================================================================== --- test/std/numerics/numarray/valarray.nonmembers/valarray.comparison/and_valarray_valarray.pass.cpp +++ test/std/numerics/numarray/valarray.nonmembers/valarray.comparison/and_valarray_valarray.pass.cpp @@ -17,6 +17,7 @@ #include #include +#include int main() { @@ -31,7 +32,7 @@ std::valarray v3 = v1 && v2; assert(v1.size() == v2.size()); assert(v1.size() == v3.size()); - for (int i = 0; i < v1.size(); ++i) + for (std::size_t i = 0; i < v1.size(); ++i) assert(v3[i] == a3[i]); } } Index: test/std/numerics/numarray/valarray.nonmembers/valarray.comparison/and_valarray_value.pass.cpp =================================================================== --- test/std/numerics/numarray/valarray.nonmembers/valarray.comparison/and_valarray_value.pass.cpp +++ test/std/numerics/numarray/valarray.nonmembers/valarray.comparison/and_valarray_value.pass.cpp @@ -17,6 +17,7 @@ #include #include +#include int main() { @@ -28,7 +29,7 @@ std::valarray v1(a1, N); std::valarray v3 = v1 && 5; assert(v1.size() == v3.size()); - for (int i = 0; i < v1.size(); ++i) + for (std::size_t i = 0; i < v1.size(); ++i) assert(v3[i] == a3[i]); } { @@ -39,7 +40,7 @@ std::valarray v1(a1, N); std::valarray v3 = v1 && 0; assert(v1.size() == v3.size()); - for (int i = 0; i < v1.size(); ++i) + for (std::size_t i = 0; i < v1.size(); ++i) assert(v3[i] == a3[i]); } } Index: test/std/numerics/numarray/valarray.nonmembers/valarray.comparison/and_value_valarray.pass.cpp =================================================================== --- test/std/numerics/numarray/valarray.nonmembers/valarray.comparison/and_value_valarray.pass.cpp +++ test/std/numerics/numarray/valarray.nonmembers/valarray.comparison/and_value_valarray.pass.cpp @@ -17,6 +17,7 @@ #include #include +#include int main() { @@ -28,7 +29,7 @@ std::valarray v2(a2, N); std::valarray v3 = 5 && v2; assert(v2.size() == v3.size()); - for (int i = 0; i < v3.size(); ++i) + for (std::size_t i = 0; i < v3.size(); ++i) assert(v3[i] == a3[i]); } { @@ -39,7 +40,7 @@ std::valarray v2(a2, N); std::valarray v3 = 0 && v2; assert(v2.size() == v3.size()); - for (int i = 0; i < v3.size(); ++i) + for (std::size_t i = 0; i < v3.size(); ++i) assert(v3[i] == a3[i]); } } Index: test/std/numerics/numarray/valarray.nonmembers/valarray.comparison/equal_valarray_valarray.pass.cpp =================================================================== --- test/std/numerics/numarray/valarray.nonmembers/valarray.comparison/equal_valarray_valarray.pass.cpp +++ test/std/numerics/numarray/valarray.nonmembers/valarray.comparison/equal_valarray_valarray.pass.cpp @@ -17,6 +17,7 @@ #include #include +#include int main() { @@ -31,7 +32,7 @@ std::valarray v3 = v1 == v2; assert(v1.size() == v2.size()); assert(v1.size() == v3.size()); - for (int i = 0; i < v1.size(); ++i) + for (std::size_t i = 0; i < v1.size(); ++i) assert(v3[i] == a3[i]); } } Index: test/std/numerics/numarray/valarray.nonmembers/valarray.comparison/equal_valarray_value.pass.cpp =================================================================== --- test/std/numerics/numarray/valarray.nonmembers/valarray.comparison/equal_valarray_value.pass.cpp +++ test/std/numerics/numarray/valarray.nonmembers/valarray.comparison/equal_valarray_value.pass.cpp @@ -17,6 +17,7 @@ #include #include +#include int main() { @@ -28,7 +29,7 @@ std::valarray v1(a1, N); std::valarray v3 = v1 == 2; assert(v1.size() == v3.size()); - for (int i = 0; i < v1.size(); ++i) + for (std::size_t i = 0; i < v1.size(); ++i) assert(v3[i] == a3[i]); } } Index: test/std/numerics/numarray/valarray.nonmembers/valarray.comparison/equal_value_valarray.pass.cpp =================================================================== --- test/std/numerics/numarray/valarray.nonmembers/valarray.comparison/equal_value_valarray.pass.cpp +++ test/std/numerics/numarray/valarray.nonmembers/valarray.comparison/equal_value_valarray.pass.cpp @@ -17,6 +17,7 @@ #include #include +#include int main() { @@ -28,7 +29,7 @@ std::valarray v2(a2, N); std::valarray v3 = 2 == v2; assert(v2.size() == v3.size()); - for (int i = 0; i < v3.size(); ++i) + for (std::size_t i = 0; i < v3.size(); ++i) assert(v3[i] == a3[i]); } } Index: test/std/numerics/numarray/valarray.nonmembers/valarray.comparison/greater_equal_valarray_valarray.pass.cpp =================================================================== --- test/std/numerics/numarray/valarray.nonmembers/valarray.comparison/greater_equal_valarray_valarray.pass.cpp +++ test/std/numerics/numarray/valarray.nonmembers/valarray.comparison/greater_equal_valarray_valarray.pass.cpp @@ -17,6 +17,7 @@ #include #include +#include int main() { @@ -31,7 +32,7 @@ std::valarray v3 = v1 >= v2; assert(v1.size() == v2.size()); assert(v1.size() == v3.size()); - for (int i = 0; i < v1.size(); ++i) + for (std::size_t i = 0; i < v1.size(); ++i) assert(v3[i] == a3[i]); } } Index: test/std/numerics/numarray/valarray.nonmembers/valarray.comparison/greater_equal_valarray_value.pass.cpp =================================================================== --- test/std/numerics/numarray/valarray.nonmembers/valarray.comparison/greater_equal_valarray_value.pass.cpp +++ test/std/numerics/numarray/valarray.nonmembers/valarray.comparison/greater_equal_valarray_value.pass.cpp @@ -17,6 +17,7 @@ #include #include +#include int main() { @@ -28,7 +29,7 @@ std::valarray v1(a1, N); std::valarray v3 = v1 >= 2; assert(v1.size() == v3.size()); - for (int i = 0; i < v1.size(); ++i) + for (std::size_t i = 0; i < v1.size(); ++i) assert(v3[i] == a3[i]); } } Index: test/std/numerics/numarray/valarray.nonmembers/valarray.comparison/greater_equal_value_valarray.pass.cpp =================================================================== --- test/std/numerics/numarray/valarray.nonmembers/valarray.comparison/greater_equal_value_valarray.pass.cpp +++ test/std/numerics/numarray/valarray.nonmembers/valarray.comparison/greater_equal_value_valarray.pass.cpp @@ -17,6 +17,7 @@ #include #include +#include int main() { @@ -28,7 +29,7 @@ std::valarray v2(a2, N); std::valarray v3 = 2 >= v2; assert(v2.size() == v3.size()); - for (int i = 0; i < v3.size(); ++i) + for (std::size_t i = 0; i < v3.size(); ++i) assert(v3[i] == a3[i]); } } Index: test/std/numerics/numarray/valarray.nonmembers/valarray.comparison/greater_valarray_valarray.pass.cpp =================================================================== --- test/std/numerics/numarray/valarray.nonmembers/valarray.comparison/greater_valarray_valarray.pass.cpp +++ test/std/numerics/numarray/valarray.nonmembers/valarray.comparison/greater_valarray_valarray.pass.cpp @@ -17,6 +17,7 @@ #include #include +#include int main() { @@ -31,7 +32,7 @@ std::valarray v3 = v1 > v2; assert(v1.size() == v2.size()); assert(v1.size() == v3.size()); - for (int i = 0; i < v1.size(); ++i) + for (std::size_t i = 0; i < v1.size(); ++i) assert(v3[i] == a3[i]); } } Index: test/std/numerics/numarray/valarray.nonmembers/valarray.comparison/greater_valarray_value.pass.cpp =================================================================== --- test/std/numerics/numarray/valarray.nonmembers/valarray.comparison/greater_valarray_value.pass.cpp +++ test/std/numerics/numarray/valarray.nonmembers/valarray.comparison/greater_valarray_value.pass.cpp @@ -17,6 +17,7 @@ #include #include +#include int main() { @@ -28,7 +29,7 @@ std::valarray v1(a1, N); std::valarray v3 = v1 > 2; assert(v1.size() == v3.size()); - for (int i = 0; i < v1.size(); ++i) + for (std::size_t i = 0; i < v1.size(); ++i) assert(v3[i] == a3[i]); } } Index: test/std/numerics/numarray/valarray.nonmembers/valarray.comparison/greater_value_valarray.pass.cpp =================================================================== --- test/std/numerics/numarray/valarray.nonmembers/valarray.comparison/greater_value_valarray.pass.cpp +++ test/std/numerics/numarray/valarray.nonmembers/valarray.comparison/greater_value_valarray.pass.cpp @@ -17,6 +17,7 @@ #include #include +#include int main() { @@ -28,7 +29,7 @@ std::valarray v2(a2, N); std::valarray v3 = 2 > v2; assert(v2.size() == v3.size()); - for (int i = 0; i < v3.size(); ++i) + for (std::size_t i = 0; i < v3.size(); ++i) assert(v3[i] == a3[i]); } } Index: test/std/numerics/numarray/valarray.nonmembers/valarray.comparison/less_equal_valarray_valarray.pass.cpp =================================================================== --- test/std/numerics/numarray/valarray.nonmembers/valarray.comparison/less_equal_valarray_valarray.pass.cpp +++ test/std/numerics/numarray/valarray.nonmembers/valarray.comparison/less_equal_valarray_valarray.pass.cpp @@ -17,6 +17,7 @@ #include #include +#include int main() { @@ -31,7 +32,7 @@ std::valarray v3 = v1 <= v2; assert(v1.size() == v2.size()); assert(v1.size() == v3.size()); - for (int i = 0; i < v1.size(); ++i) + for (std::size_t i = 0; i < v1.size(); ++i) assert(v3[i] == a3[i]); } } Index: test/std/numerics/numarray/valarray.nonmembers/valarray.comparison/less_equal_valarray_value.pass.cpp =================================================================== --- test/std/numerics/numarray/valarray.nonmembers/valarray.comparison/less_equal_valarray_value.pass.cpp +++ test/std/numerics/numarray/valarray.nonmembers/valarray.comparison/less_equal_valarray_value.pass.cpp @@ -17,6 +17,7 @@ #include #include +#include int main() { @@ -28,7 +29,7 @@ std::valarray v1(a1, N); std::valarray v3 = v1 <= 2; assert(v1.size() == v3.size()); - for (int i = 0; i < v1.size(); ++i) + for (std::size_t i = 0; i < v1.size(); ++i) assert(v3[i] == a3[i]); } } Index: test/std/numerics/numarray/valarray.nonmembers/valarray.comparison/less_equal_value_valarray.pass.cpp =================================================================== --- test/std/numerics/numarray/valarray.nonmembers/valarray.comparison/less_equal_value_valarray.pass.cpp +++ test/std/numerics/numarray/valarray.nonmembers/valarray.comparison/less_equal_value_valarray.pass.cpp @@ -17,6 +17,7 @@ #include #include +#include int main() { @@ -28,7 +29,7 @@ std::valarray v2(a2, N); std::valarray v3 = 2 <= v2; assert(v2.size() == v3.size()); - for (int i = 0; i < v3.size(); ++i) + for (std::size_t i = 0; i < v3.size(); ++i) assert(v3[i] == a3[i]); } } Index: test/std/numerics/numarray/valarray.nonmembers/valarray.comparison/less_valarray_valarray.pass.cpp =================================================================== --- test/std/numerics/numarray/valarray.nonmembers/valarray.comparison/less_valarray_valarray.pass.cpp +++ test/std/numerics/numarray/valarray.nonmembers/valarray.comparison/less_valarray_valarray.pass.cpp @@ -17,6 +17,7 @@ #include #include +#include int main() { @@ -31,7 +32,7 @@ std::valarray v3 = v1 < v2; assert(v1.size() == v2.size()); assert(v1.size() == v3.size()); - for (int i = 0; i < v1.size(); ++i) + for (std::size_t i = 0; i < v1.size(); ++i) assert(v3[i] == a3[i]); } } Index: test/std/numerics/numarray/valarray.nonmembers/valarray.comparison/less_valarray_value.pass.cpp =================================================================== --- test/std/numerics/numarray/valarray.nonmembers/valarray.comparison/less_valarray_value.pass.cpp +++ test/std/numerics/numarray/valarray.nonmembers/valarray.comparison/less_valarray_value.pass.cpp @@ -17,6 +17,7 @@ #include #include +#include int main() { @@ -28,7 +29,7 @@ std::valarray v1(a1, N); std::valarray v3 = v1 < 2; assert(v1.size() == v3.size()); - for (int i = 0; i < v1.size(); ++i) + for (std::size_t i = 0; i < v1.size(); ++i) assert(v3[i] == a3[i]); } } Index: test/std/numerics/numarray/valarray.nonmembers/valarray.comparison/less_value_valarray.pass.cpp =================================================================== --- test/std/numerics/numarray/valarray.nonmembers/valarray.comparison/less_value_valarray.pass.cpp +++ test/std/numerics/numarray/valarray.nonmembers/valarray.comparison/less_value_valarray.pass.cpp @@ -17,6 +17,7 @@ #include #include +#include int main() { @@ -28,7 +29,7 @@ std::valarray v2(a2, N); std::valarray v3 = 2 < v2; assert(v2.size() == v3.size()); - for (int i = 0; i < v3.size(); ++i) + for (std::size_t i = 0; i < v3.size(); ++i) assert(v3[i] == a3[i]); } } Index: test/std/numerics/numarray/valarray.nonmembers/valarray.comparison/not_equal_valarray_valarray.pass.cpp =================================================================== --- test/std/numerics/numarray/valarray.nonmembers/valarray.comparison/not_equal_valarray_valarray.pass.cpp +++ test/std/numerics/numarray/valarray.nonmembers/valarray.comparison/not_equal_valarray_valarray.pass.cpp @@ -17,6 +17,7 @@ #include #include +#include int main() { @@ -31,7 +32,7 @@ std::valarray v3 = v1 != v2; assert(v1.size() == v2.size()); assert(v1.size() == v3.size()); - for (int i = 0; i < v1.size(); ++i) + for (std::size_t i = 0; i < v1.size(); ++i) assert(v3[i] == a3[i]); } } Index: test/std/numerics/numarray/valarray.nonmembers/valarray.comparison/not_equal_valarray_value.pass.cpp =================================================================== --- test/std/numerics/numarray/valarray.nonmembers/valarray.comparison/not_equal_valarray_value.pass.cpp +++ test/std/numerics/numarray/valarray.nonmembers/valarray.comparison/not_equal_valarray_value.pass.cpp @@ -17,6 +17,7 @@ #include #include +#include int main() { @@ -28,7 +29,7 @@ std::valarray v1(a1, N); std::valarray v3 = v1 != 2; assert(v1.size() == v3.size()); - for (int i = 0; i < v1.size(); ++i) + for (std::size_t i = 0; i < v1.size(); ++i) assert(v3[i] == a3[i]); } } Index: test/std/numerics/numarray/valarray.nonmembers/valarray.comparison/not_equal_value_valarray.pass.cpp =================================================================== --- test/std/numerics/numarray/valarray.nonmembers/valarray.comparison/not_equal_value_valarray.pass.cpp +++ test/std/numerics/numarray/valarray.nonmembers/valarray.comparison/not_equal_value_valarray.pass.cpp @@ -17,6 +17,7 @@ #include #include +#include int main() { @@ -28,7 +29,7 @@ std::valarray v2(a2, N); std::valarray v3 = 2 != v2; assert(v2.size() == v3.size()); - for (int i = 0; i < v3.size(); ++i) + for (std::size_t i = 0; i < v3.size(); ++i) assert(v3[i] == a3[i]); } } Index: test/std/numerics/numarray/valarray.nonmembers/valarray.comparison/or_valarray_valarray.pass.cpp =================================================================== --- test/std/numerics/numarray/valarray.nonmembers/valarray.comparison/or_valarray_valarray.pass.cpp +++ test/std/numerics/numarray/valarray.nonmembers/valarray.comparison/or_valarray_valarray.pass.cpp @@ -17,6 +17,7 @@ #include #include +#include int main() { @@ -31,7 +32,7 @@ std::valarray v3 = v1 || v2; assert(v1.size() == v2.size()); assert(v1.size() == v3.size()); - for (int i = 0; i < v1.size(); ++i) + for (std::size_t i = 0; i < v1.size(); ++i) assert(v3[i] == a3[i]); } } Index: test/std/numerics/numarray/valarray.nonmembers/valarray.comparison/or_valarray_value.pass.cpp =================================================================== --- test/std/numerics/numarray/valarray.nonmembers/valarray.comparison/or_valarray_value.pass.cpp +++ test/std/numerics/numarray/valarray.nonmembers/valarray.comparison/or_valarray_value.pass.cpp @@ -17,6 +17,7 @@ #include #include +#include int main() { @@ -28,7 +29,7 @@ std::valarray v1(a1, N); std::valarray v3 = v1 || 5; assert(v1.size() == v3.size()); - for (int i = 0; i < v1.size(); ++i) + for (std::size_t i = 0; i < v1.size(); ++i) assert(v3[i] == a3[i]); } { @@ -39,7 +40,7 @@ std::valarray v1(a1, N); std::valarray v3 = v1 || 0; assert(v1.size() == v3.size()); - for (int i = 0; i < v1.size(); ++i) + for (std::size_t i = 0; i < v1.size(); ++i) assert(v3[i] == a3[i]); } } Index: test/std/numerics/numarray/valarray.nonmembers/valarray.comparison/or_value_valarray.pass.cpp =================================================================== --- test/std/numerics/numarray/valarray.nonmembers/valarray.comparison/or_value_valarray.pass.cpp +++ test/std/numerics/numarray/valarray.nonmembers/valarray.comparison/or_value_valarray.pass.cpp @@ -17,6 +17,7 @@ #include #include +#include int main() { @@ -28,7 +29,7 @@ std::valarray v2(a2, N); std::valarray v3 = 5 || v2; assert(v2.size() == v3.size()); - for (int i = 0; i < v3.size(); ++i) + for (std::size_t i = 0; i < v3.size(); ++i) assert(v3[i] == a3[i]); } { @@ -39,7 +40,7 @@ std::valarray v2(a2, N); std::valarray v3 = 0 || v2; assert(v2.size() == v3.size()); - for (int i = 0; i < v3.size(); ++i) + for (std::size_t i = 0; i < v3.size(); ++i) assert(v3[i] == a3[i]); } } Index: test/std/numerics/numarray/valarray.nonmembers/valarray.special/swap.pass.cpp =================================================================== --- test/std/numerics/numarray/valarray.nonmembers/valarray.special/swap.pass.cpp +++ test/std/numerics/numarray/valarray.nonmembers/valarray.special/swap.pass.cpp @@ -17,6 +17,7 @@ #include #include +#include int main() { @@ -32,10 +33,10 @@ std::valarray v2_save = v2; swap(v1, v2); assert(v1.size() == v2_save.size()); - for (int i = 0; i < v1.size(); ++i) + for (std::size_t i = 0; i < v1.size(); ++i) assert(v1[i] == v2_save[i]); assert(v2.size() == v1_save.size()); - for (int i = 0; i < v2.size(); ++i) + for (std::size_t i = 0; i < v2.size(); ++i) assert(v2[i] == v1_save[i]); } { @@ -49,10 +50,10 @@ std::valarray v2_save = v2; swap(v1, v2); assert(v1.size() == v2_save.size()); - for (int i = 0; i < v1.size(); ++i) + for (std::size_t i = 0; i < v1.size(); ++i) assert(v1[i] == v2_save[i]); assert(v2.size() == v1_save.size()); - for (int i = 0; i < v2.size(); ++i) + for (std::size_t i = 0; i < v2.size(); ++i) assert(v2[i] == v1_save[i]); } { @@ -66,10 +67,10 @@ std::valarray v2_save = v2; swap(v1, v2); assert(v1.size() == v2_save.size()); - for (int i = 0; i < v1.size(); ++i) + for (std::size_t i = 0; i < v1.size(); ++i) assert(v1[i] == v2_save[i]); assert(v2.size() == v1_save.size()); - for (int i = 0; i < v2.size(); ++i) + for (std::size_t i = 0; i < v2.size(); ++i) assert(v2[i] == v1_save[i]); } { @@ -82,10 +83,10 @@ std::valarray v2_save = v2; swap(v1, v2); assert(v1.size() == v2_save.size()); - for (int i = 0; i < v1.size(); ++i) + for (std::size_t i = 0; i < v1.size(); ++i) assert(v1[i] == v2_save[i]); assert(v2.size() == v1_save.size()); - for (int i = 0; i < v2.size(); ++i) + for (std::size_t i = 0; i < v2.size(); ++i) assert(v2[i] == v1_save[i]); } } Index: test/std/numerics/numarray/valarray.nonmembers/valarray.transcend/abs_valarray.pass.cpp =================================================================== --- test/std/numerics/numarray/valarray.nonmembers/valarray.transcend/abs_valarray.pass.cpp +++ test/std/numerics/numarray/valarray.nonmembers/valarray.transcend/abs_valarray.pass.cpp @@ -17,6 +17,7 @@ #include #include +#include int main() { @@ -28,7 +29,7 @@ std::valarray v1(a1, N); std::valarray v3 = abs(v1); assert(v3.size() == v1.size()); - for (int i = 0; i < v3.size(); ++i) + for (std::size_t i = 0; i < v3.size(); ++i) assert(v3[i] == a3[i]); } } Index: test/std/numerics/numarray/valarray.nonmembers/valarray.transcend/acos_valarray.pass.cpp =================================================================== --- test/std/numerics/numarray/valarray.nonmembers/valarray.transcend/acos_valarray.pass.cpp +++ test/std/numerics/numarray/valarray.nonmembers/valarray.transcend/acos_valarray.pass.cpp @@ -18,6 +18,7 @@ #include #include #include +#include bool is_about(double x, double y, int p) { @@ -45,7 +46,7 @@ std::valarray v1(a1, N); std::valarray v3 = acos(v1); assert(v3.size() == v1.size()); - for (int i = 0; i < v3.size(); ++i) + for (std::size_t i = 0; i < v3.size(); ++i) assert(is_about(v3[i], a3[i], 10)); } } Index: test/std/numerics/numarray/valarray.nonmembers/valarray.transcend/asin_valarray.pass.cpp =================================================================== --- test/std/numerics/numarray/valarray.nonmembers/valarray.transcend/asin_valarray.pass.cpp +++ test/std/numerics/numarray/valarray.nonmembers/valarray.transcend/asin_valarray.pass.cpp @@ -18,6 +18,7 @@ #include #include #include +#include bool is_about(double x, double y, int p) { @@ -45,7 +46,7 @@ std::valarray v1(a1, N); std::valarray v3 = asin(v1); assert(v3.size() == v1.size()); - for (int i = 0; i < v3.size(); ++i) + for (std::size_t i = 0; i < v3.size(); ++i) assert(is_about(v3[i], a3[i], 10)); } } Index: test/std/numerics/numarray/valarray.nonmembers/valarray.transcend/atan2_valarray_valarray.pass.cpp =================================================================== --- test/std/numerics/numarray/valarray.nonmembers/valarray.transcend/atan2_valarray_valarray.pass.cpp +++ test/std/numerics/numarray/valarray.nonmembers/valarray.transcend/atan2_valarray_valarray.pass.cpp @@ -18,6 +18,7 @@ #include #include #include +#include bool is_about(double x, double y, int p) { @@ -47,7 +48,7 @@ std::valarray v2(a2, N); std::valarray v3 = atan2(v1, v2); assert(v3.size() == v1.size()); - for (int i = 0; i < v3.size(); ++i) + for (std::size_t i = 0; i < v3.size(); ++i) assert(is_about(v3[i], a3[i], 10)); } } Index: test/std/numerics/numarray/valarray.nonmembers/valarray.transcend/atan2_valarray_value.pass.cpp =================================================================== --- test/std/numerics/numarray/valarray.nonmembers/valarray.transcend/atan2_valarray_value.pass.cpp +++ test/std/numerics/numarray/valarray.nonmembers/valarray.transcend/atan2_valarray_value.pass.cpp @@ -18,6 +18,7 @@ #include #include #include +#include bool is_about(double x, double y, int p) { @@ -45,7 +46,7 @@ std::valarray v1(a1, N); std::valarray v3 = atan2(v1, .75); assert(v3.size() == v1.size()); - for (int i = 0; i < v3.size(); ++i) + for (std::size_t i = 0; i < v3.size(); ++i) assert(is_about(v3[i], a3[i], 10)); } } Index: test/std/numerics/numarray/valarray.nonmembers/valarray.transcend/atan2_value_valarray.pass.cpp =================================================================== --- test/std/numerics/numarray/valarray.nonmembers/valarray.transcend/atan2_value_valarray.pass.cpp +++ test/std/numerics/numarray/valarray.nonmembers/valarray.transcend/atan2_value_valarray.pass.cpp @@ -18,6 +18,7 @@ #include #include #include +#include bool is_about(double x, double y, int p) { @@ -45,7 +46,7 @@ std::valarray v1(a1, N); std::valarray v3 = atan2(.75, v1); assert(v3.size() == v1.size()); - for (int i = 0; i < v3.size(); ++i) + for (std::size_t i = 0; i < v3.size(); ++i) assert(is_about(v3[i], a3[i], 10)); } } Index: test/std/numerics/numarray/valarray.nonmembers/valarray.transcend/atan_valarray.pass.cpp =================================================================== --- test/std/numerics/numarray/valarray.nonmembers/valarray.transcend/atan_valarray.pass.cpp +++ test/std/numerics/numarray/valarray.nonmembers/valarray.transcend/atan_valarray.pass.cpp @@ -18,6 +18,7 @@ #include #include #include +#include bool is_about(double x, double y, int p) { @@ -45,7 +46,7 @@ std::valarray v1(a1, N); std::valarray v3 = atan(v1); assert(v3.size() == v1.size()); - for (int i = 0; i < v3.size(); ++i) + for (std::size_t i = 0; i < v3.size(); ++i) assert(is_about(v3[i], a3[i], 10)); } } Index: test/std/numerics/numarray/valarray.nonmembers/valarray.transcend/cos_valarray.pass.cpp =================================================================== --- test/std/numerics/numarray/valarray.nonmembers/valarray.transcend/cos_valarray.pass.cpp +++ test/std/numerics/numarray/valarray.nonmembers/valarray.transcend/cos_valarray.pass.cpp @@ -18,6 +18,7 @@ #include #include #include +#include bool is_about(double x, double y, int p) { @@ -45,7 +46,7 @@ std::valarray v1(a1, N); std::valarray v3 = cos(v1); assert(v3.size() == v1.size()); - for (int i = 0; i < v3.size(); ++i) + for (std::size_t i = 0; i < v3.size(); ++i) assert(is_about(v3[i], a3[i], 10)); } } Index: test/std/numerics/numarray/valarray.nonmembers/valarray.transcend/cosh_valarray.pass.cpp =================================================================== --- test/std/numerics/numarray/valarray.nonmembers/valarray.transcend/cosh_valarray.pass.cpp +++ test/std/numerics/numarray/valarray.nonmembers/valarray.transcend/cosh_valarray.pass.cpp @@ -18,6 +18,7 @@ #include #include #include +#include bool is_about(double x, double y, int p) { @@ -45,7 +46,7 @@ std::valarray v1(a1, N); std::valarray v3 = cosh(v1); assert(v3.size() == v1.size()); - for (int i = 0; i < v3.size(); ++i) + for (std::size_t i = 0; i < v3.size(); ++i) assert(is_about(v3[i], a3[i], 10)); } } Index: test/std/numerics/numarray/valarray.nonmembers/valarray.transcend/exp_valarray.pass.cpp =================================================================== --- test/std/numerics/numarray/valarray.nonmembers/valarray.transcend/exp_valarray.pass.cpp +++ test/std/numerics/numarray/valarray.nonmembers/valarray.transcend/exp_valarray.pass.cpp @@ -18,6 +18,7 @@ #include #include #include +#include bool is_about(double x, double y, int p) { @@ -45,7 +46,7 @@ std::valarray v1(a1, N); std::valarray v3 = exp(v1); assert(v3.size() == v1.size()); - for (int i = 0; i < v3.size(); ++i) + for (std::size_t i = 0; i < v3.size(); ++i) assert(is_about(v3[i], a3[i], 10)); } } Index: test/std/numerics/numarray/valarray.nonmembers/valarray.transcend/log10_valarray.pass.cpp =================================================================== --- test/std/numerics/numarray/valarray.nonmembers/valarray.transcend/log10_valarray.pass.cpp +++ test/std/numerics/numarray/valarray.nonmembers/valarray.transcend/log10_valarray.pass.cpp @@ -18,6 +18,7 @@ #include #include #include +#include bool is_about(double x, double y, int p) { @@ -45,7 +46,7 @@ std::valarray v1(a1, N); std::valarray v3 = log10(v1); assert(v3.size() == v1.size()); - for (int i = 0; i < v3.size(); ++i) + for (std::size_t i = 0; i < v3.size(); ++i) assert(is_about(v3[i], a3[i], 10)); } } Index: test/std/numerics/numarray/valarray.nonmembers/valarray.transcend/log_valarray.pass.cpp =================================================================== --- test/std/numerics/numarray/valarray.nonmembers/valarray.transcend/log_valarray.pass.cpp +++ test/std/numerics/numarray/valarray.nonmembers/valarray.transcend/log_valarray.pass.cpp @@ -18,6 +18,7 @@ #include #include #include +#include bool is_about(double x, double y, int p) { @@ -45,7 +46,7 @@ std::valarray v1(a1, N); std::valarray v3 = log(v1); assert(v3.size() == v1.size()); - for (int i = 0; i < v3.size(); ++i) + for (std::size_t i = 0; i < v3.size(); ++i) assert(is_about(v3[i], a3[i], 10)); } } Index: test/std/numerics/numarray/valarray.nonmembers/valarray.transcend/pow_valarray_valarray.pass.cpp =================================================================== --- test/std/numerics/numarray/valarray.nonmembers/valarray.transcend/pow_valarray_valarray.pass.cpp +++ test/std/numerics/numarray/valarray.nonmembers/valarray.transcend/pow_valarray_valarray.pass.cpp @@ -18,6 +18,7 @@ #include #include #include +#include bool is_about(double x, double y, int p) { @@ -47,7 +48,7 @@ std::valarray v2(a2, N); std::valarray v3 = pow(v1, v2); assert(v3.size() == v1.size()); - for (int i = 0; i < v3.size(); ++i) + for (std::size_t i = 0; i < v3.size(); ++i) assert(is_about(v3[i], a3[i], 10)); } } Index: test/std/numerics/numarray/valarray.nonmembers/valarray.transcend/pow_valarray_value.pass.cpp =================================================================== --- test/std/numerics/numarray/valarray.nonmembers/valarray.transcend/pow_valarray_value.pass.cpp +++ test/std/numerics/numarray/valarray.nonmembers/valarray.transcend/pow_valarray_value.pass.cpp @@ -18,6 +18,7 @@ #include #include #include +#include bool is_about(double x, double y, int p) { @@ -45,7 +46,7 @@ std::valarray v1(a1, N); std::valarray v3 = pow(v1, 2.0); assert(v3.size() == v1.size()); - for (int i = 0; i < v3.size(); ++i) + for (std::size_t i = 0; i < v3.size(); ++i) assert(is_about(v3[i], a3[i], 10)); } } Index: test/std/numerics/numarray/valarray.nonmembers/valarray.transcend/pow_value_valarray.pass.cpp =================================================================== --- test/std/numerics/numarray/valarray.nonmembers/valarray.transcend/pow_value_valarray.pass.cpp +++ test/std/numerics/numarray/valarray.nonmembers/valarray.transcend/pow_value_valarray.pass.cpp @@ -18,6 +18,7 @@ #include #include #include +#include bool is_about(double x, double y, int p) { @@ -45,7 +46,7 @@ std::valarray v1(a1, N); std::valarray v3 = pow(2.0, v1); assert(v3.size() == v1.size()); - for (int i = 0; i < v3.size(); ++i) + for (std::size_t i = 0; i < v3.size(); ++i) assert(is_about(v3[i], a3[i], 10)); } } Index: test/std/numerics/numarray/valarray.nonmembers/valarray.transcend/sin_valarray.pass.cpp =================================================================== --- test/std/numerics/numarray/valarray.nonmembers/valarray.transcend/sin_valarray.pass.cpp +++ test/std/numerics/numarray/valarray.nonmembers/valarray.transcend/sin_valarray.pass.cpp @@ -18,6 +18,7 @@ #include #include #include +#include bool is_about(double x, double y, int p) { @@ -45,7 +46,7 @@ std::valarray v1(a1, N); std::valarray v3 = sin(v1); assert(v3.size() == v1.size()); - for (int i = 0; i < v3.size(); ++i) + for (std::size_t i = 0; i < v3.size(); ++i) assert(is_about(v3[i], a3[i], 10)); } } Index: test/std/numerics/numarray/valarray.nonmembers/valarray.transcend/sinh_valarray.pass.cpp =================================================================== --- test/std/numerics/numarray/valarray.nonmembers/valarray.transcend/sinh_valarray.pass.cpp +++ test/std/numerics/numarray/valarray.nonmembers/valarray.transcend/sinh_valarray.pass.cpp @@ -18,6 +18,7 @@ #include #include #include +#include bool is_about(double x, double y, int p) { @@ -45,7 +46,7 @@ std::valarray v1(a1, N); std::valarray v3 = sinh(v1); assert(v3.size() == v1.size()); - for (int i = 0; i < v3.size(); ++i) + for (std::size_t i = 0; i < v3.size(); ++i) assert(is_about(v3[i], a3[i], 10)); } } Index: test/std/numerics/numarray/valarray.nonmembers/valarray.transcend/sqrt_valarray.pass.cpp =================================================================== --- test/std/numerics/numarray/valarray.nonmembers/valarray.transcend/sqrt_valarray.pass.cpp +++ test/std/numerics/numarray/valarray.nonmembers/valarray.transcend/sqrt_valarray.pass.cpp @@ -18,6 +18,7 @@ #include #include #include +#include bool is_about(double x, double y, int p) { @@ -45,7 +46,7 @@ std::valarray v1(a1, N); std::valarray v3 = sqrt(v1); assert(v3.size() == v1.size()); - for (int i = 0; i < v3.size(); ++i) + for (std::size_t i = 0; i < v3.size(); ++i) assert(is_about(v3[i], a3[i], 10)); } } Index: test/std/numerics/numarray/valarray.nonmembers/valarray.transcend/tan_valarray.pass.cpp =================================================================== --- test/std/numerics/numarray/valarray.nonmembers/valarray.transcend/tan_valarray.pass.cpp +++ test/std/numerics/numarray/valarray.nonmembers/valarray.transcend/tan_valarray.pass.cpp @@ -18,6 +18,7 @@ #include #include #include +#include bool is_about(double x, double y, int p) { @@ -45,7 +46,7 @@ std::valarray v1(a1, N); std::valarray v3 = tan(v1); assert(v3.size() == v1.size()); - for (int i = 0; i < v3.size(); ++i) + for (std::size_t i = 0; i < v3.size(); ++i) assert(is_about(v3[i], a3[i], 10)); } } Index: test/std/numerics/numarray/valarray.nonmembers/valarray.transcend/tanh_valarray.pass.cpp =================================================================== --- test/std/numerics/numarray/valarray.nonmembers/valarray.transcend/tanh_valarray.pass.cpp +++ test/std/numerics/numarray/valarray.nonmembers/valarray.transcend/tanh_valarray.pass.cpp @@ -18,6 +18,7 @@ #include #include #include +#include bool is_about(double x, double y, int p) { @@ -45,7 +46,7 @@ std::valarray v1(a1, N); std::valarray v3 = tanh(v1); assert(v3.size() == v1.size()); - for (int i = 0; i < v3.size(); ++i) + for (std::size_t i = 0; i < v3.size(); ++i) assert(is_about(v3[i], a3[i], 10)); } } Index: test/std/numerics/rand/rand.dis/rand.dist.bern/rand.dist.bern.bernoulli/eval.pass.cpp =================================================================== --- test/std/numerics/rand/rand.dis/rand.dist.bern/rand.dist.bern.bernoulli/eval.pass.cpp +++ test/std/numerics/rand/rand.dis/rand.dist.bern/rand.dist.bern.bernoulli/eval.pass.cpp @@ -17,6 +17,7 @@ #include #include #include +#include template inline @@ -42,7 +43,7 @@ double var = 0; double skew = 0; double kurtosis = 0; - for (int i = 0; i < u.size(); ++i) + for (std::size_t i = 0; i < u.size(); ++i) { double dbl = (u[i] - mean); double d2 = sqr(dbl); @@ -78,7 +79,7 @@ double var = 0; double skew = 0; double kurtosis = 0; - for (int i = 0; i < u.size(); ++i) + for (std::size_t i = 0; i < u.size(); ++i) { double dbl = (u[i] - mean); double d2 = sqr(dbl); Index: test/std/numerics/rand/rand.dis/rand.dist.bern/rand.dist.bern.bernoulli/eval_param.pass.cpp =================================================================== --- test/std/numerics/rand/rand.dis/rand.dist.bern/rand.dist.bern.bernoulli/eval_param.pass.cpp +++ test/std/numerics/rand/rand.dis/rand.dist.bern/rand.dist.bern.bernoulli/eval_param.pass.cpp @@ -17,6 +17,7 @@ #include #include #include +#include template inline @@ -44,7 +45,7 @@ double var = 0; double skew = 0; double kurtosis = 0; - for (int i = 0; i < u.size(); ++i) + for (std::size_t i = 0; i < u.size(); ++i) { double dbl = (u[i] - mean); double d2 = sqr(dbl); @@ -82,7 +83,7 @@ double var = 0; double skew = 0; double kurtosis = 0; - for (int i = 0; i < u.size(); ++i) + for (std::size_t i = 0; i < u.size(); ++i) { double dbl = (u[i] - mean); double d2 = sqr(dbl); Index: test/std/numerics/rand/rand.dis/rand.dist.norm/rand.dist.norm.chisq/eval.pass.cpp =================================================================== --- test/std/numerics/rand/rand.dis/rand.dist.norm/rand.dist.norm.chisq/eval.pass.cpp +++ test/std/numerics/rand/rand.dis/rand.dist.norm/rand.dist.norm.chisq/eval.pass.cpp @@ -20,6 +20,7 @@ #include #include #include +#include template inline @@ -49,7 +50,7 @@ double var = 0; double skew = 0; double kurtosis = 0; - for (int i = 0; i < u.size(); ++i) + for (std::size_t i = 0; i < u.size(); ++i) { double dbl = (u[i] - mean); double d2 = sqr(dbl); @@ -89,7 +90,7 @@ double var = 0; double skew = 0; double kurtosis = 0; - for (int i = 0; i < u.size(); ++i) + for (std::size_t i = 0; i < u.size(); ++i) { double dbl = (u[i] - mean); double d2 = sqr(dbl); @@ -129,7 +130,7 @@ double var = 0; double skew = 0; double kurtosis = 0; - for (int i = 0; i < u.size(); ++i) + for (std::size_t i = 0; i < u.size(); ++i) { double dbl = (u[i] - mean); double d2 = sqr(dbl); Index: test/std/numerics/rand/rand.dis/rand.dist.norm/rand.dist.norm.chisq/eval_param.pass.cpp =================================================================== --- test/std/numerics/rand/rand.dis/rand.dist.norm/rand.dist.norm.chisq/eval_param.pass.cpp +++ test/std/numerics/rand/rand.dis/rand.dist.norm/rand.dist.norm.chisq/eval_param.pass.cpp @@ -20,6 +20,7 @@ #include #include #include +#include template inline @@ -50,7 +51,7 @@ double var = 0; double skew = 0; double kurtosis = 0; - for (int i = 0; i < u.size(); ++i) + for (std::size_t i = 0; i < u.size(); ++i) { double dbl = (u[i] - mean); double d2 = sqr(dbl); @@ -91,7 +92,7 @@ double var = 0; double skew = 0; double kurtosis = 0; - for (int i = 0; i < u.size(); ++i) + for (std::size_t i = 0; i < u.size(); ++i) { double dbl = (u[i] - mean); double d2 = sqr(dbl); @@ -132,7 +133,7 @@ double var = 0; double skew = 0; double kurtosis = 0; - for (int i = 0; i < u.size(); ++i) + for (std::size_t i = 0; i < u.size(); ++i) { double dbl = (u[i] - mean); double d2 = sqr(dbl); Index: test/std/numerics/rand/rand.dis/rand.dist.norm/rand.dist.norm.normal/eval.pass.cpp =================================================================== --- test/std/numerics/rand/rand.dis/rand.dist.norm/rand.dist.norm.normal/eval.pass.cpp +++ test/std/numerics/rand/rand.dis/rand.dist.norm/rand.dist.norm.normal/eval.pass.cpp @@ -20,6 +20,7 @@ #include #include #include +#include template inline @@ -45,7 +46,7 @@ double var = 0; double skew = 0; double kurtosis = 0; - for (int i = 0; i < u.size(); ++i) + for (std::size_t i = 0; i < u.size(); ++i) { double dbl = (u[i] - mean); double d2 = sqr(dbl); Index: test/std/numerics/rand/rand.dis/rand.dist.norm/rand.dist.norm.normal/eval_param.pass.cpp =================================================================== --- test/std/numerics/rand/rand.dis/rand.dist.norm/rand.dist.norm.normal/eval_param.pass.cpp +++ test/std/numerics/rand/rand.dis/rand.dist.norm/rand.dist.norm.normal/eval_param.pass.cpp @@ -20,6 +20,7 @@ #include #include #include +#include template inline @@ -46,7 +47,7 @@ double var = 0; double skew = 0; double kurtosis = 0; - for (int i = 0; i < u.size(); ++i) + for (std::size_t i = 0; i < u.size(); ++i) { double dbl = (u[i] - mean); double d2 = sqr(dbl); Index: test/std/numerics/rand/rand.dis/rand.dist.pois/rand.dist.pois.exp/eval.pass.cpp =================================================================== --- test/std/numerics/rand/rand.dis/rand.dist.pois/rand.dist.pois.exp/eval.pass.cpp +++ test/std/numerics/rand/rand.dis/rand.dist.pois/rand.dist.pois.exp/eval.pass.cpp @@ -20,6 +20,7 @@ #include #include #include +#include template inline @@ -49,7 +50,7 @@ double var = 0; double skew = 0; double kurtosis = 0; - for (int i = 0; i < u.size(); ++i) + for (std::size_t i = 0; i < u.size(); ++i) { double dbl = (u[i] - mean); double d2 = sqr(dbl); @@ -89,7 +90,7 @@ double var = 0; double skew = 0; double kurtosis = 0; - for (int i = 0; i < u.size(); ++i) + for (std::size_t i = 0; i < u.size(); ++i) { double dbl = (u[i] - mean); double d2 = sqr(dbl); @@ -129,7 +130,7 @@ double var = 0; double skew = 0; double kurtosis = 0; - for (int i = 0; i < u.size(); ++i) + for (std::size_t i = 0; i < u.size(); ++i) { double dbl = (u[i] - mean); double d2 = sqr(dbl); Index: test/std/numerics/rand/rand.dis/rand.dist.pois/rand.dist.pois.exp/eval_param.pass.cpp =================================================================== --- test/std/numerics/rand/rand.dis/rand.dist.pois/rand.dist.pois.exp/eval_param.pass.cpp +++ test/std/numerics/rand/rand.dis/rand.dist.pois/rand.dist.pois.exp/eval_param.pass.cpp @@ -20,6 +20,7 @@ #include #include #include +#include template inline @@ -50,7 +51,7 @@ double var = 0; double skew = 0; double kurtosis = 0; - for (int i = 0; i < u.size(); ++i) + for (std::size_t i = 0; i < u.size(); ++i) { double dbl = (u[i] - mean); double d2 = sqr(dbl); Index: test/std/numerics/rand/rand.dis/rand.dist.pois/rand.dist.pois.weibull/eval.pass.cpp =================================================================== --- test/std/numerics/rand/rand.dis/rand.dist.pois/rand.dist.pois.weibull/eval.pass.cpp +++ test/std/numerics/rand/rand.dis/rand.dist.pois/rand.dist.pois.weibull/eval.pass.cpp @@ -20,6 +20,7 @@ #include #include #include +#include template inline @@ -49,7 +50,7 @@ double var = 0; double skew = 0; double kurtosis = 0; - for (int i = 0; i < u.size(); ++i) + for (std::size_t i = 0; i < u.size(); ++i) { double dbl = (u[i] - mean); double d2 = sqr(dbl); @@ -93,7 +94,7 @@ double var = 0; double skew = 0; double kurtosis = 0; - for (int i = 0; i < u.size(); ++i) + for (std::size_t i = 0; i < u.size(); ++i) { double dbl = (u[i] - mean); double d2 = sqr(dbl); @@ -137,7 +138,7 @@ double var = 0; double skew = 0; double kurtosis = 0; - for (int i = 0; i < u.size(); ++i) + for (std::size_t i = 0; i < u.size(); ++i) { double dbl = (u[i] - mean); double d2 = sqr(dbl); Index: test/std/numerics/rand/rand.dis/rand.dist.pois/rand.dist.pois.weibull/eval_param.pass.cpp =================================================================== --- test/std/numerics/rand/rand.dis/rand.dist.pois/rand.dist.pois.weibull/eval_param.pass.cpp +++ test/std/numerics/rand/rand.dis/rand.dist.pois/rand.dist.pois.weibull/eval_param.pass.cpp @@ -20,6 +20,7 @@ #include #include #include +#include template inline @@ -50,7 +51,7 @@ double var = 0; double skew = 0; double kurtosis = 0; - for (int i = 0; i < u.size(); ++i) + for (std::size_t i = 0; i < u.size(); ++i) { double dbl = (u[i] - mean); double d2 = sqr(dbl); @@ -95,7 +96,7 @@ double var = 0; double skew = 0; double kurtosis = 0; - for (int i = 0; i < u.size(); ++i) + for (std::size_t i = 0; i < u.size(); ++i) { double dbl = (u[i] - mean); double d2 = sqr(dbl); @@ -140,7 +141,7 @@ double var = 0; double skew = 0; double kurtosis = 0; - for (int i = 0; i < u.size(); ++i) + for (std::size_t i = 0; i < u.size(); ++i) { double dbl = (u[i] - mean); double d2 = sqr(dbl); Index: test/std/numerics/rand/rand.dis/rand.dist.samp/rand.dist.samp.pconst/eval_param.pass.cpp =================================================================== --- test/std/numerics/rand/rand.dis/rand.dist.samp/rand.dist.samp.pconst/eval_param.pass.cpp +++ test/std/numerics/rand/rand.dis/rand.dist.samp/rand.dist.samp.pconst/eval_param.pass.cpp @@ -22,6 +22,7 @@ #include #include #include +#include template inline @@ -53,7 +54,7 @@ } std::vector prob(std::begin(p), std::end(p)); double s = std::accumulate(prob.begin(), prob.end(), 0.0); - for (int i = 0; i < prob.size(); ++i) + for (std::size_t i = 0; i < prob.size(); ++i) prob[i] /= s; std::sort(u.begin(), u.end()); for (int i = 0; i < Np; ++i) Index: test/std/numerics/rand/rand.dis/rand.dist.uni/rand.dist.uni.int/eval.pass.cpp =================================================================== --- test/std/numerics/rand/rand.dis/rand.dist.uni/rand.dist.uni.int/eval.pass.cpp +++ test/std/numerics/rand/rand.dis/rand.dist.uni/rand.dist.uni.int/eval.pass.cpp @@ -20,6 +20,7 @@ #include #include #include +#include template inline @@ -49,7 +50,7 @@ double var = 0; double skew = 0; double kurtosis = 0; - for (int i = 0; i < u.size(); ++i) + for (std::size_t i = 0; i < u.size(); ++i) { double dbl = (u[i] - mean); double d2 = sqr(dbl); @@ -90,7 +91,7 @@ double var = 0; double skew = 0; double kurtosis = 0; - for (int i = 0; i < u.size(); ++i) + for (std::size_t i = 0; i < u.size(); ++i) { double dbl = (u[i] - mean); double d2 = sqr(dbl); @@ -131,7 +132,7 @@ double var = 0; double skew = 0; double kurtosis = 0; - for (int i = 0; i < u.size(); ++i) + for (std::size_t i = 0; i < u.size(); ++i) { double dbl = (u[i] - mean); double d2 = sqr(dbl); @@ -172,7 +173,7 @@ double var = 0; double skew = 0; double kurtosis = 0; - for (int i = 0; i < u.size(); ++i) + for (std::size_t i = 0; i < u.size(); ++i) { double dbl = (u[i] - mean); double d2 = sqr(dbl); @@ -213,7 +214,7 @@ double var = 0; double skew = 0; double kurtosis = 0; - for (int i = 0; i < u.size(); ++i) + for (std::size_t i = 0; i < u.size(); ++i) { double dbl = (u[i] - mean); double d2 = sqr(dbl); @@ -254,7 +255,7 @@ double var = 0; double skew = 0; double kurtosis = 0; - for (int i = 0; i < u.size(); ++i) + for (std::size_t i = 0; i < u.size(); ++i) { double dbl = (u[i] - mean); double d2 = sqr(dbl); @@ -295,7 +296,7 @@ double var = 0; double skew = 0; double kurtosis = 0; - for (int i = 0; i < u.size(); ++i) + for (std::size_t i = 0; i < u.size(); ++i) { double dbl = (u[i] - mean); double d2 = sqr(dbl); @@ -336,7 +337,7 @@ double var = 0; double skew = 0; double kurtosis = 0; - for (int i = 0; i < u.size(); ++i) + for (std::size_t i = 0; i < u.size(); ++i) { double dbl = (u[i] - mean); double d2 = sqr(dbl); @@ -377,7 +378,7 @@ double var = 0; double skew = 0; double kurtosis = 0; - for (int i = 0; i < u.size(); ++i) + for (std::size_t i = 0; i < u.size(); ++i) { double dbl = (u[i] - mean); double d2 = sqr(dbl); @@ -429,7 +430,7 @@ double var = 0; double skew = 0; double kurtosis = 0; - for (int i = 0; i < u.size(); ++i) + for (std::size_t i = 0; i < u.size(); ++i) { double dbl = (u[i] - mean); double d2 = sqr(dbl); Index: test/std/numerics/rand/rand.dis/rand.dist.uni/rand.dist.uni.int/eval_param.pass.cpp =================================================================== --- test/std/numerics/rand/rand.dis/rand.dist.uni/rand.dist.uni.int/eval_param.pass.cpp +++ test/std/numerics/rand/rand.dis/rand.dist.uni/rand.dist.uni.int/eval_param.pass.cpp @@ -18,6 +18,7 @@ #include #include #include +#include template inline @@ -49,7 +50,7 @@ double var = 0; double skew = 0; double kurtosis = 0; - for (int i = 0; i < u.size(); ++i) + for (std::size_t i = 0; i < u.size(); ++i) { double dbl = (u[i] - mean); double d2 = sqr(dbl); Index: test/std/numerics/rand/rand.dis/rand.dist.uni/rand.dist.uni.real/eval.pass.cpp =================================================================== --- test/std/numerics/rand/rand.dis/rand.dist.uni/rand.dist.uni.real/eval.pass.cpp +++ test/std/numerics/rand/rand.dis/rand.dist.uni/rand.dist.uni.real/eval.pass.cpp @@ -20,6 +20,7 @@ #include #include #include +#include template inline @@ -49,7 +50,7 @@ D::result_type var = 0; D::result_type skew = 0; D::result_type kurtosis = 0; - for (int i = 0; i < u.size(); ++i) + for (std::size_t i = 0; i < u.size(); ++i) { D::result_type dbl = (u[i] - mean); D::result_type d2 = sqr(dbl); @@ -89,7 +90,7 @@ D::result_type var = 0; D::result_type skew = 0; D::result_type kurtosis = 0; - for (int i = 0; i < u.size(); ++i) + for (std::size_t i = 0; i < u.size(); ++i) { D::result_type dbl = (u[i] - mean); D::result_type d2 = sqr(dbl); @@ -129,7 +130,7 @@ D::result_type var = 0; D::result_type skew = 0; D::result_type kurtosis = 0; - for (int i = 0; i < u.size(); ++i) + for (std::size_t i = 0; i < u.size(); ++i) { D::result_type dbl = (u[i] - mean); D::result_type d2 = sqr(dbl); @@ -169,7 +170,7 @@ D::result_type var = 0; D::result_type skew = 0; D::result_type kurtosis = 0; - for (int i = 0; i < u.size(); ++i) + for (std::size_t i = 0; i < u.size(); ++i) { D::result_type dbl = (u[i] - mean); D::result_type d2 = sqr(dbl); @@ -209,7 +210,7 @@ D::result_type var = 0; D::result_type skew = 0; D::result_type kurtosis = 0; - for (int i = 0; i < u.size(); ++i) + for (std::size_t i = 0; i < u.size(); ++i) { D::result_type dbl = (u[i] - mean); D::result_type d2 = sqr(dbl); @@ -249,7 +250,7 @@ D::result_type var = 0; D::result_type skew = 0; D::result_type kurtosis = 0; - for (int i = 0; i < u.size(); ++i) + for (std::size_t i = 0; i < u.size(); ++i) { D::result_type dbl = (u[i] - mean); D::result_type d2 = sqr(dbl); @@ -289,7 +290,7 @@ D::result_type var = 0; D::result_type skew = 0; D::result_type kurtosis = 0; - for (int i = 0; i < u.size(); ++i) + for (std::size_t i = 0; i < u.size(); ++i) { D::result_type dbl = (u[i] - mean); D::result_type d2 = sqr(dbl); @@ -329,7 +330,7 @@ D::result_type var = 0; D::result_type skew = 0; D::result_type kurtosis = 0; - for (int i = 0; i < u.size(); ++i) + for (std::size_t i = 0; i < u.size(); ++i) { D::result_type dbl = (u[i] - mean); D::result_type d2 = sqr(dbl); @@ -369,7 +370,7 @@ D::result_type var = 0; D::result_type skew = 0; D::result_type kurtosis = 0; - for (int i = 0; i < u.size(); ++i) + for (std::size_t i = 0; i < u.size(); ++i) { D::result_type dbl = (u[i] - mean); D::result_type d2 = sqr(dbl); @@ -409,7 +410,7 @@ D::result_type var = 0; D::result_type skew = 0; D::result_type kurtosis = 0; - for (int i = 0; i < u.size(); ++i) + for (std::size_t i = 0; i < u.size(); ++i) { D::result_type dbl = (u[i] - mean); D::result_type d2 = sqr(dbl); @@ -449,7 +450,7 @@ D::result_type var = 0; D::result_type skew = 0; D::result_type kurtosis = 0; - for (int i = 0; i < u.size(); ++i) + for (std::size_t i = 0; i < u.size(); ++i) { D::result_type dbl = (u[i] - mean); D::result_type d2 = sqr(dbl); Index: test/std/numerics/rand/rand.dis/rand.dist.uni/rand.dist.uni.real/eval_param.pass.cpp =================================================================== --- test/std/numerics/rand/rand.dis/rand.dist.uni/rand.dist.uni.real/eval_param.pass.cpp +++ test/std/numerics/rand/rand.dis/rand.dist.uni/rand.dist.uni.real/eval_param.pass.cpp @@ -18,6 +18,7 @@ #include #include #include +#include template inline @@ -49,7 +50,7 @@ D::result_type var = 0; D::result_type skew = 0; D::result_type kurtosis = 0; - for (int i = 0; i < u.size(); ++i) + for (std::size_t i = 0; i < u.size(); ++i) { D::result_type dbl = (u[i] - mean); D::result_type d2 = sqr(dbl);