U++ framework
Do not panic. Ask here before giving up.

Home » Extra libraries, Code snippets, applications etc. » C++ language problems and code snippets » overloading operators rules
Re: overloading operators rules [message #19432 is a reply to message #19431] Wed, 03 December 2008 14:45 Go to previous messageGo to previous message
mirek is currently offline  mirek
Messages: 14291
Registered: November 2005
Ultimate Member
amando1957 wrote on Wed, 03 December 2008 07:31

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.



Or, at least, keep the new semantics consistent Smile

Mirek
 
Read Message icon5.gif
Read Message
Read Message
Read Message
Previous Topic: I don't get some aspects of STL ... [pointless rant]
Next Topic: Basic library interface and separation problem
Goto Forum:
  


Current Time: Sun Jun 21 15:02:20 GMT+2 2026

Total time taken to generate the page: 0.00506 seconds