Language
C++
Compiler
gcc 13.2.0
Options
Warnings
Don't Use Boost
C++17
-pedantic
Raw compiler options
-O2
$ g++ prog.cc -Wall -Wextra -std=c++17 -pedantic -O2Exit Code:
1
Author
anonymous
25 days ago
C++
gcc 13.2.0
Author
anonymous
25 days ago
$ g++ prog.cc -Wall -Wextra -std=c++17 -pedantic -O2prog.cc: In function 'int main()':
prog.cc:11:8: error: passing 'proxy' as 'this' argument discards qualifiers [-fpermissive]
11 | p.f(); // Error.
| ~~~^~
prog.cc:3:10: note: in call to 'void proxy::f() &&'
3 | void f() && {}
| ^