|
-
September 5th, 2008, 07:41 AM
#18
Re: Template specialisation of template class member function
 Originally Posted by JohnW@Wessex
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.
Hehe, yes, I´m aware of that. But to use the power of memcpy you have to provide a type_traits specialization for your class.
- Guido
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|