Boost logo

Boost :

From: Beman Dawes (bdawes_at_[hidden])
Date: 2002-10-12 16:31:54


At 01:11 PM 10/12/2002, Andrei Alexandrescu wrote:

>... So it just seems to me
>that now is not the time to go sticking const on a lot of
>return-by-value functions just to make sure clients don't write
>insanely stupid code:
>
>(s1 + s2) = s3;

As a result of pre-review comments, the Filesystem Library just reviewed
had const stuck on a bunch of member functions which return by value but
take no arguments. For example:

       const iterator begin() const;

What is your take on that? Any different from the case where the returned
value is a modified pass through of an argument?

--Beman


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