Language
C++
Compiler
gcc HEAD 9.0.1 20190317 (experimental)
Options
Boost 1.69.0
C++17
no pedantic
$ g++ prog.cc -I/opt/wandbox/boost-1.69.0/gcc-head/include -std=c++17
Exit Code:
1
Author
anonymous
over 6 years ago
C++
gcc HEAD 9.0.1 20190317 (experimental)
Author
anonymous
over 6 years ago
$ g++ prog.cc -I/opt/wandbox/boost-1.69.0/gcc-head/include -std=c++17
prog.cc: In function 'int main()':
prog.cc:16:15: error: use of deleted function 'A& A::operator=(const A&) &&'
16 | foo()=foo();
| ^
prog.cc:4:8: note: declared here
4 | A& operator=(const A&) && = delete;
| ^~~~~~~~