Author
anonymous
almost 8 years ago
Language
Compiler
Options
Author
anonymous
almost 8 years ago
$
prog.cc: In function 'int main()':
prog.cc:25:11: warning: unused variable 'a' [-Wunused-variable]
data<3> a; // no operator()
^
prog.cc: In instantiation of 'std::enable_if_t<activate, int>& data<N, T>::operator()(const U&) [with U = double; bool activate = true; int N = 3; T = {int}; std::enable_if_t<activate, int> = int]':
prog.cc:32:23: required from here
prog.cc:16:6: error: static assertion failed: argument type to operator() is incorrect
static_assert(std::is_same_v<U, typename enum_wrapper<T...>::type>, L"argument type to operator() is incorrect");
^~~~~~~~~~~~~
Exit Code:
1