
8 Apr
2011
8 Apr
'11
3:05 p.m.
Joel Falcou
template<class T> struct M
::type> { static void foo() { std::cout<< "enum"<< std::endl; } }; template<typename T> struct M
::type> { static void foo() { std::cout<< "scalar"<< std::endl; } };
This will not really work for me. This was just an artificial example. In reality I have generic header which defines the template, another common header which defines some not very specific specialization and multiple (number changes as project grows) headers where I define more specific specializations. I can't "NOT" all the specific conditions in "scalar" level specialization - It's just not maintainable. Any other options? Thank you, Gennadiy