Boost logo

Boost :

From: Peter Dimov (pdimov_at_[hidden])
Date: 2004-01-09 14:15:34


Lars Gullik Bjønnes wrote:
> "Lucas Galfaso" <lgalfaso_at_[hidden]> writes:
>
>> Actually, type qualifier on the return type of member functions is
>> meaningless (if they are not returned by referece.)
>
> Why? I've found them useful.

Rvalues of built-in types are never cv-qualified, so when you write, for
example,

    double const f();
    void const * const g();

you get a warning from EDG (and maybe others.)


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