Skip to content

Commit

Permalink
Revert "Fix unnecessary lambda capture warning"
Browse files Browse the repository at this point in the history
This reverts commit 80ce6b2.
The capture is only unnecessary on some compilers.
  • Loading branch information
ddemidov committed Feb 13, 2019
1 parent 80ce6b2 commit 192137a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/vector_copy.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ BOOST_AUTO_TEST_CASE(gather)
vex::vector<double> X(ctx, x);

std::vector<size_t> 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() );

Expand Down

0 comments on commit 192137a

Please sign in to comment.