From: Joel de Guzman (joel_at_[hidden])
Date: 2004-01-09 21:14:18
Lars Gullik Bjønnes wrote:
> "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)
Exactly. Now, the bottom line is: is it worth it to provide a
special case mpl::apply_if for builtins merely to silence this
-- Joel de Guzman http://www.boost-consulting.com http://spirit.sf.net
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk