We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 551bdf6 commit 6691e63Copy full SHA for 6691e63
ut/columns_ut.cpp
@@ -85,7 +85,7 @@ auto SameValueSeq(const U & value) {
85
86
template <typename ResultType, typename Generator1, typename Generator2>
87
auto AlternateGenerators(Generator1 && gen1, Generator2 && gen2) {
88
- return [=](size_t i) -> ResultType {
+ return [&gen1, &gen2](size_t i) -> ResultType {
89
if (i % 2 == 0)
90
return gen1(i/2);
91
else
0 commit comments