Author
anonymous
about 5 years ago
Language
Compiler
Options
Author
anonymous
about 5 years ago
$
prog.cc:18:5: error: no matching function for call to 'assign2'
assign2<int>(0, 1, 2, r); // ok!
^~~~~~~~~~~~
prog.cc:9:64: note: candidate template ignored: requirement '!std::is_lvalue_reference_v<const int &>' was not satisfied [with A = int, Args = <int, int, int, const int &>]
std::enable_if_t<((!std::is_lvalue_reference_v<Args>) && ...)> assign2(Args&& ...) {
^
1 error generated.
Exit Code:
1