Wandbox
SettingsLog
SettingsLog
Language
GitHubLogin
Ran/Viewed Log

Author

anonymous

almost 9 years ago

Language

Compiler

Options

Author

anonymous

almost 9 years ago

$
prog.cc:7:5: error: default member initializer for 'x' needed within definition of enclosing class 'foo' outside of member functions
    foo() noexcept = default;
    ^
prog.cc:8:32: note: in instantiation of template class 'X<foo &>' requested here
    void f() noexcept(noexcept(X<foo&>()));
                               ^
prog.cc:6:9: note: default member initializer declared here
    int x{0};
        ^
1 error generated.
Exit Code:
1