Language
C++
Compiler
gcc HEAD 9.0.1 20190219 (experimental)
Options
Warnings
Optimization
Boost 1.69.0
C++2a
no pedantic
$ g++ prog.cc -Wall -Wextra -O2 -march=native -I/opt/wandbox/boost-1.69.0/gcc-head/include -std=c++2a
ula
ula
Exit Code:
0
Author
anonymous
about 6 years ago
C++
gcc HEAD 9.0.1 20190219 (experimental)
Author
anonymous
about 6 years ago
$ g++ prog.cc -Wall -Wextra -O2 -march=native -I/opt/wandbox/boost-1.69.0/gcc-head/include -std=c++2a
prog.cc: In lambda function:
prog.cc:12:16: warning: implicit capture of 'this' via '[=]' is deprecated in C++20 [-Wdeprecated]
12 | return [=] { std::cout << s << std::endl; };
| ^
prog.cc:12:16: note: add explicit 'this' or '*this' capture
ula
ula