Wandbox
SettingsLog
SettingsLog
Language
GitHubLogin
Ran/Viewed Log

Author

anonymous

over 8 years ago

Language

Compiler

Options

Author

anonymous

over 8 years ago

$
prog.cc:18:43: error: call to deleted constructor of 'Base'
Derived::Derived(bool init_with_string) : Base(init_with_string ? Base("forty-two") : Base(42))
                                          ^    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
prog.cc:8:5: note: 'Base' has been explicitly marked deleted here
    Base(Base&&) = delete;
    ^
1 error generated.
Exit Code:
1