Jim-Holmstroem / Hax---The-Game

The final lab in a C++-course.
3 stars 0 forks source link

Partial template specialization #2

Closed sye closed 11 years ago

sye commented 12 years ago

It does not work very well to use T (value_type) as a pointer. Instead, we should revert the changes made and assume T is a non-pointer. On top of the template (serializablevector.h), we add some partial template specialization for pointers. http://stackoverflow.com/questions/1134283/pointers-as-template-parameters http://www.cprogramming.com/tutorial/template_specialization.html