Template overload of operator ++/--
I'd like to do an overlord of operator ++ and -- for my class with templates, like this:
But the thing is, that while it compiles fine, I can't call that overloaded operator.
template<typename T> CValueHandler& operator ++ ();
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:
Doesn't work either.
Using Visual Studio 2005.