Defining a Template Member Function

You can define a template member function in an ordinary class as follows:

 class C{public:  template int func(T* p);};template  int C::func(T* p){  return 0;}

Note that Visual C++ doesn

Share the Post:
Share on facebook
Share on twitter
Share on linkedin

Overview

Recent Articles: