Author
anonymous
over 7 years ago
Language
Compiler
Options
Author
anonymous
over 7 years ago
$
prog.cc:8:5: error: static_assert failed due to requirement '!std::is_same_v<Bar, Bar>' "foo does not support Bar"
static_assert(!std::is_same_v<T, Bar>,
^ ~~~~~~~~~~~~~~~~~~~~~~~
prog.cc:12:10: note: in instantiation of template class 'foo<Bar>' requested here
foo<Bar> b;
^
1 error generated.
Exit Code:
1