Language
C++
Compiler
gcc HEAD 9.0.0 20181010 (experimental)
Options
Warnings
Boost 1.68.0
C++2a(GNU)
no pedantic
$ g++ prog.cc -Wall -Wextra -I/opt/wandbox/boost-1.68.0/gcc-head/include -std=gnu++2a
Exit Code:
1
Author
anonymous
almost 7 years ago
C++
gcc HEAD 9.0.0 20181010 (experimental)
Author
anonymous
almost 7 years ago
$ g++ prog.cc -Wall -Wextra -I/opt/wandbox/boost-1.68.0/gcc-head/include -std=gnu++2a
prog.cc: In function 'int main()':
prog.cc:35:10: error: use of deleted function 'B& B::operator=(const B&)'
35 | b2 = b; // コピー代入演算子は消されている
| ^
prog.cc:18:7: note: 'B& B::operator=(const B&)' is implicitly deleted because the default definition would be ill-formed:
18 | class B {
| ^
prog.cc:18:7: error: non-static reference member 'A& B::a', can't use default assignment operator