Boost logo

Boost :

From: Beman Dawes (bdawes_at_[hidden])
Date: 2002-08-02 10:47:42


At 08:26 AM 8/2/2002, Peter Dimov wrote:

>From: "Beman Dawes" <bdawes_at_[hidden]>

>> ... path::begin() can't return a const iterator; iteration
>>(operator++, operator--) wouldn't work!
>
>++p2.begin() already doesn't work. An iterator is not required to be a
>class type, and therefore, its rvalues aren't required to support ++. All

>built-in rvalues, despite being non-qualifiable, are de-facto const.

You're right. I always forget that.

What to do about it? See my reply to Darin.

--Beman

PS: The Standard itself uses --a.end() twice in the optional sequence
operations table!


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