How to declare function template inside class?
Code:class CTime { public: CTime(int mn, int hr); template<typename Any> void max(Any no); }; In the cpp file I am implementing max. When I create instance in main and try calling max: int main() { CTime T(1,2); T.max(3); return 0; } I get a linking error for max.