You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
#include <iostream>
|
|
int main()
|
|
{
|
|
int i = 0;
|
|
auto z = [&](auto t){return 1;};
|
|
auto x = [&](auto y){
|
|
y(z);
|
|
std::cout << "i: " << i << std::endl;
|
|
return i++;
|
|
};
|
|
auto q1 = [=](auto x){
|
|
return 1;
|
|
};
|
|
q1(x(x));
|
|
}
|