Wandbox
SettingsLog
SettingsLog
Language
GitHubLogin
Ran/Viewed Log

Author

anonymous

over 6 years ago

Language

C++

Compiler

gcc HEAD 9.0.1 20190317 (experimental)

Options
Boost 1.69.0
C++17
no pedantic

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;
      |        ^~~~~~~~
Exit Code:
1