amando1957 Messages: 57 Registered: November 2007 Location: Wien/Vienna/Viden
Member
Hi to all.
There are rules for overloading operators in C++ I'm not sure i got them all. I do not ask for a syntax tutor, its meant so "what makes sense".
- keep track of semantics, so that the operator performs it is assumed to do: the op+ should add anything.
- avoid a given overload provided by the lang: "int % int" is here already.
Anyone can tell me some further rules recommended?
Thank you for any reply.