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