I was wondering if I partially specialize a class (which I'm understanding to mean hardcode some of the template parameters?) if I have to implement all functions or if I can just implement some functions. I put together a demo:
Where in the main class definition there are two functions, and then only one of them gets specialized in the <T,int> specialization.
However, I'm getting an error which I don't believe has to do with my original question :
on this line
class Point<T, int>
Point.h:16: error: template parameters not used in partial specialization: Point.h:16: error: ‘<anonymous>’
I assume it's just a syntax problem? But for some reason I haven't been able to find a clear demonstration of this.
Can anyone see the problem?