Wandbox
SettingsLog
SettingsLog
Language
GitHubLogin
Ran/Viewed Log

Author

anonymous

about 5 years ago

Language

Compiler

Options

Author

anonymous

about 5 years ago

$
prog.cc:10:5: error: static_assert failed due to requirement '!std::is_lvalue_reference_v<const int &>' "must be rvalue"
    static_assert(((!std::is_lvalue_reference_v<Args>) && ...), "must be rvalue");
    ^               ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
prog.cc:19:5: note: in instantiation of function template specialization 'assign2<int, int, int, int, const int &>' requested here
    assign2<int>(0, 1, 2, r);        // ok!
    ^
1 error generated.
Exit Code:
1