Author
anonymous
almost 8 years ago
Language
Compiler
Options
Author
anonymous
almost 8 years ago
$ prog.cc: In function 'int main()':
prog.cc:19:11: error: use of deleted function 'A::A(const A&)'
A a3 = 0;
^
prog.cc:12:5: note: declared here
A(const A&) = delete; // { cout << "copy"; }
^
prog.cc:9:5: note: after user-defined conversion: 'A::A(int)'
A(int) { cout << "int" ; }
^
Exit Code:
1