Boost logo

Boost :

From: Aidan Kenny (aidan.kenny_at_[hidden])
Date: 2001-02-08 13:54:30


Hello everyone,

Any class implementing operator+ should return a const value. This will
cause a compile error if we try to do something stupid like,

object_x + object_y = object_z;

Without the const return value in the operator+ the declaration above
would be a valid statement and would compile.

GUESS WHAT boost returns a non const value.

Hope I'm right here,
Aidan.


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk