Author
anonymous
about 8 years ago
Language
Compiler
Options
Author
anonymous
about 8 years ago
$ prog.cc: In function 'int main()':
prog.cc:11:19: error: use of deleted function 'A::operator const Foo&() const volatile'
Foo const& b2 = a; // should be error
^
prog.cc:5:3: note: declared here
operator Foo const&() const volatile = delete;
^~~~~~~~
prog.cc:11:14: warning: unused variable 'b2' [-Wunused-variable]
Foo const& b2 = a; // should be error
^~
Exit Code:
1