Author
anonymous
over 7 years ago
Language
Compiler
Options
Author
anonymous
over 7 years ago
$
prog.cc:18:4: error: no matching function for call to 'consume'
consume(std::get<0>(t));
^~~~~~~
prog.cc:23:5: note: in instantiation of function template specialization 'consume_tuple_first<std::__1::tuple<foo> >' requested here
consume_tuple_first(std::tuple{foo{}});
^
prog.cc:11:6: note: candidate function not viable: no known conversion from 'typename tuple_element<0UL, tuple<foo> >::type' (aka '__type_pack_element<0UL, foo>') to 'foo &&' for 1st argument
void consume(foo&&)
^
1 error generated.
Exit Code:
1