Language
C++
Compiler
gcc 9.2.0
Options
Warnings
Boost 1.70.0
C++2a(GNU)
no pedantic
$ g++ prog.cc -Wall -Wextra -I/opt/wandbox/boost-1.70.0/gcc-9.2.0/include -std=gnu++2a
Exit Code:
0
Author
anonymous
about 6 years ago
C++
gcc 9.2.0
Author
anonymous
about 6 years ago
$ g++ prog.cc -Wall -Wextra -I/opt/wandbox/boost-1.70.0/gcc-9.2.0/include -std=gnu++2a
prog.cc: In function 'int main()':
prog.cc:11:11: warning: 'void test2()' is deprecated: \nUse this_func()\nDescription: ...\nParameter: ...\n [-Wdeprecated-declarations]
11 | test2();
| ^
prog.cc:7:6: note: declared here
7 | void test2() {
| ^~~~~
prog.cc:11:11: warning: 'void test2()' is deprecated: \nUse this_func()\nDescription: ...\nParameter: ...\n [-Wdeprecated-declarations]
11 | test2();
| ^
prog.cc:7:6: note: declared here
7 | void test2() {
| ^~~~~