Is there a way to make template specialization only for basic types? I tried to do the following:
template<typename T, typename = typename std::enable_if<!std::is_fundamental<T>::value>::type> class foo { } template<typename T, typename = typename std::enable_if<std::is_fundamental<T>::value>::type> class foo { }
But I get an error that the template is already defined.
c ++ generic-programming templates metaprogramming
Andreas Loanjoe
source share