Boost logo

Boost :

From: Lars Gullik Bjønnes (larsbj_at_[hidden])
Date: 2004-01-09 20:17:27


"Peter Dimov" <pdimov_at_[hidden]> writes:

| 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,

That was built-in types.

There is a difference from that and stating that "type qualifier on
the return type of member functions is meaningless".

I was more thinking of using const to avoid modification of
temporaries. (f.ex. when returing std::string)

-- 
	Lgb

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