— Just, unless you get a reference of guaranteed existence, never store a reference
Someone can see that it's guaranteed in a specific case, then someone else can change the code on the right side so it starts pointing to a temporary.
— I don't see a point of returning a reference here, because 2d point is usually a pod object, so it's copy is cheap
Message permanent page
— I see your point, but i don't see totally crazy. Actually, operator= is more or less the same and you always return a reference
— Hello everyone I'm vaibhav aka Tommy
— Hello Tommy
— Hi pals