summaryrefslogtreecommitdiffstats
path: root/pstl/test/std/algorithms/alg.modifying.operations/generate.pass.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'pstl/test/std/algorithms/alg.modifying.operations/generate.pass.cpp')
-rw-r--r--pstl/test/std/algorithms/alg.modifying.operations/generate.pass.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/pstl/test/std/algorithms/alg.modifying.operations/generate.pass.cpp b/pstl/test/std/algorithms/alg.modifying.operations/generate.pass.cpp
index 185e98c86d2..89aa004621f 100644
--- a/pstl/test/std/algorithms/alg.modifying.operations/generate.pass.cpp
+++ b/pstl/test/std/algorithms/alg.modifying.operations/generate.pass.cpp
@@ -54,11 +54,11 @@ struct test_generate
{
Generator_count<T> g;
const auto m = n / 2;
- auto last = generate_n(exec, first, m, g);
- Size count = std::count(first, last, g.default_value());
- EXPECT_TRUE(count == m && last == std::next(first, m),
+ auto actual_last = generate_n(exec, first, m, g);
+ Size count = std::count(first, actual_last, g.default_value());
+ EXPECT_TRUE(count == m && actual_last == std::next(first, m),
"generate_n wrong result for generate_n");
- std::fill(first, last, T(0));
+ std::fill(first, actual_last, T(0));
}
}
};
@@ -69,7 +69,7 @@ test_generate_by_type()
{
for (size_t n = 0; n <= 100000; n = n < 16 ? n + 1 : size_t(3.1415 * n))
{
- Sequence<T> in(n, [](size_t v) -> T { return T(0); }); //fill by zero
+ Sequence<T> in(n, [](size_t) -> T { return T(0); }); //fill by zero
invoke_on_all_policies(test_generate(), in.begin(), in.end(), in.size());
}
OpenPOWER on IntegriCloud