Closed sye closed 11 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
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