Boost logo

Boost :

Subject: Re: [boost] lifetime of ranges vs. iterators
From: David Abrahams (dave_at_[hidden])
Date: 2008-09-03 12:47:21

on Wed Sep 03 2008, Arno Schödl <> wrote:

> As with these end checks, what if dereference would throw exceptions? End checks
> gone, all the way up the stack...

The problem happens way before dereference: it's the undefined behavior
that results from even moving the underlying iterator past the end of
the underlying sequence.

Dave Abrahams
BoostPro Computing

Boost list run by bdawes at, gregod at, cpdaniel at, john at