Wandbox
SettingsLog
SettingsLog
Language
GitHubLogin
Ran/Viewed Log

Author

anonymous

over 4 years ago

Language

C++

Compiler

clang HEAD 13.0.0 (https://github.com/llvm/llvm-project.git 233ba2709bde54ea820cdaba0405d46b2c197e01)

Options
Don't Use Boost
C++17
no pedantic

Author

anonymous

over 4 years ago

$ clang++ prog.cc -std=c++17
prog.cc:13:10: error: call to deleted constructor of 'Obj'
  return o; // error C2280: move constructor is deleted
         ^
prog.cc:7:3: note: 'Obj' has been explicitly marked deleted here
  Obj(Obj&&) = delete;
  ^
1 error generated.
Exit Code:
1