From 192137a2c1f74de97dc2859d8af76b822a9a4dd6 Mon Sep 17 00:00:00 2001 From: Denis Demidov Date: Wed, 13 Feb 2019 20:50:08 +0300 Subject: [PATCH] Revert "Fix unnecessary lambda capture warning" This reverts commit 80ce6b2c2163a8f46b05fa98c184f02cbeec0964. The capture is only unnecessary on some compilers. --- tests/vector_copy.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/vector_copy.cpp b/tests/vector_copy.cpp index 44ffaabea..e12ca54cc 100644 --- a/tests/vector_copy.cpp +++ b/tests/vector_copy.cpp @@ -78,7 +78,7 @@ BOOST_AUTO_TEST_CASE(gather) vex::vector X(ctx, x); std::vector i(m); - std::generate(i.begin(), i.end(), [](){ return rand() % n; }); + std::generate(i.begin(), i.end(), [n](){ return rand() % n; }); std::sort(i.begin(), i.end()); i.resize( std::unique(i.begin(), i.end()) - i.begin() );