Author
anonymous
almost 9 years ago
$
prog.cc: In function 'int main(int, char**)': prog.cc:7:10: warning: variable 'capture' set but not used [-Wunused-but-set-variable] auto capture = [&x]() { printf("capture function x=%d\n", x); }; ^~~~~~~ non capture function
prog.cc: In function 'int main(int, char**)': prog.cc:7:10: warning: variable 'capture' set but not used [-Wunused-but-set-variable] auto capture = [&x]() { printf("capture function x=%d\n", x); }; ^~~~~~~
non capture function