Re: Template specialisation of template class member function

Originally Posted by
GNiewerth
One drawback of using type_traits is that you have to provide them for every type you´re going to use.
Not necessarily. You can define a default template for something like Is_Pod where the falue is 'false', then specialise the template for POD types. When you use it for a new class or structure type it will automatically acquire the 'false' value.
"It doesn't matter how beautiful your theory is, it doesn't matter how smart you are. If it doesn't agree with experiment, it's wrong."
Richard P. Feynman