Wandbox
SettingsLog
SettingsLog
Language
GitHubLogin
Ran/Viewed Log

Author

anonymous

over 6 years ago

Language

C++

Compiler

clang 5.0.0

Options
Warnings
Boost 1.69.0
C++17
no pedantic

Author

anonymous

over 6 years ago

$ clang++ prog.cc -Wall -Wextra -I/opt/wandbox/boost-1.69.0/clang-5.0.0/include -std=c++17
prog.cc:22:7: error: call to deleted constructor of 'A'
    A a{AFactory()};
      ^~~~~~~~~~~~~
prog.cc:6:5: note: 'A' has been explicitly marked deleted here
    A(A &&) = delete;
    ^
1 error generated.
Exit Code:
1