Boost logo

Boost :

From: Eric Woodruff (Eric.Woodruff_at_[hidden])
Date: 2002-10-13 10:34:41


I think it's undefined to do anything with end besides comparison to it for
the most part.

"Yitzhak Sapir" <yitzhaks_at_[hidden]> wrote in message
news:Pine.WNT.4.44.0210131417190.2156-100000_at_yitzhaks.adrembi.com...

On Sun, 13 Oct 2002, [iso-8859-1] Terje Slettebø wrote:

> >Fwiw, I've used --c.end() and am not sorry for it! :-)
>
> If you do that on Intel C++ and STLPort for e.g. c=std::string, you get a
> compile-time error, as c.end() is not a modifiable lvalue. :) In other
> words, whether or not that work depends on the platform, and is therefore
> not portable.

What about boost::prior(c.end()) ?

_______________________________________________
Unsubscribe & other changes:
http://lists.boost.org/mailman/listinfo.cgi/boost


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