Author
anonymous
about 7 years ago
Language
Compiler
Options
Author
anonymous
about 7 years ago
$
prog.cc:20:59: warning: unused parameter 'cs' [-Wunused-parameter]
std::vector<C*> reorder_in_some_way(const std::vector<C>& cs) {
^
prog.cc:46:39: warning: unused parameter 'cs' [-Wunused-parameter]
void do_a_thing(const std::vector<T>& cs) {
^
prog.cc:47:4: error: static_assert failed due to requirement 'always_false<Q>::value' "do_a_thing only works for C and C*"
static_assert(always_false<T>::value, "do_a_thing only works for C and C*");
^ ~~~~~~~~~~~~~~~~~~~~~~
prog.cc:60:4: note: in instantiation of function template specialization 'do_a_thing<Q, 0>' requested here
do_a_thing(qs); // compiler error
^
2 warnings and 1 error generated.
Exit Code:
1