prog.cpp: In instantiation of ‘struct test<1>’:
prog.cpp:14:11: required from here
prog.cpp:7:41: error: no type named ‘type’ in ‘struct std::enable_if<false, void>’
typename std::enable_if<N == 2>::type bar() {}
^
prog.cpp: In instantiation of ‘struct test<3>’:
prog.cpp:16:11: required from here
prog.cpp:7:41: error: no type named ‘type’ in ‘struct std::enable_if<false, void>’