
Thanks. I hadn't thought of that, but of course one could find the begin of the filtered sequence by constructing it from the begin of the base sequence. Then an algorithm doing decrementing could check to see if begin had been reached and avoid decrementing beyond that. -----Original Message----- From: boost-bounces@lists.boost.org [mailto:boost-bounces@lists.boost.org] On Behalf Of David Abrahams Sent: Saturday, April 07, 2007 12:49 AM To: boost@lists.boost.org Subject: Re: [boost] [filter_iterator] Problem with --iter when applied to first satisfying location on Fri Apr 06 2007, "Ford, Rich" <Rich.Ford-AT-amd.com> wrote:
There is a problem with the filter_iterator decrement operation if the iterator is currently referencing the first object that satisfies the predicate.
That's the beginning of the sequence traversed by the iterator, so you can't decrement it legally, just like any other "begin" iterator. -- Dave Abrahams Boost Consulting www.boost-consulting.com Don't Miss BoostCon 2007! ==> http://www.boostcon.com _______________________________________________ Unsubscribe & other changes: http://lists.boost.org/mailman/listinfo.cgi/boost