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.Code:template<typename T> CValueHandler& operator ++ ();
Compiler simply complains it can't find a suitable overload.Code:SomeClass myClass; myClass++;
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.Code:SomeClass myClass; myClass<UINT64>++;
Using Visual Studio 2005.