Template overload of operator ++/--
I'd like to do an overlord of operator ++ and -- for my class with templates, like this:
Code:
template<typename T> CValueHandler& operator ++ ();
But the thing is, that while it compiles fine, I can't call that overloaded operator.
Code:
SomeClass myClass;
myClass++;
Compiler simply complains it can't find a suitable overload.
So, my question is, is it possible to overload ++/-- and use templates too? I can't seem to find a good place to fit in a template type either:
Code:
SomeClass myClass;
myClass<UINT64>++;
Doesn't work either.
Using Visual Studio 2005.