Boost logo

Boost :

From: Fernando Cacciola (fcacciola_at_[hidden])
Date: 2001-08-27 14:23:41


----- Original Message -----
From: David Abrahams <david.abrahams_at_[hidden]>
To: <boost_at_[hidden]>
Sent: Monday, August 27, 2001 3:31 PM
Subject: Re: [boost] stride_iterator_policy

> suppose I start at position 1 in row-major storage:
>
> +--+--+--+
> | | |1 |
> +--+--+--+
> | | |2 |
> +--+--+--+
> XX 3
>
> Forming a one-past-the end iterator requires forming an iterator to
position
> 3, which is (for pointers and all other iterators I know of) undefined
> behavior unless position XX has storage allocated.
>
Of course, I see it now. Thanks.

(I don't like though, but at least I understand that it does solve the
problem).

Fernando Cacciola
Sierra s.r.l.
fcacciola_at_[hidden]
www.gosierra.com


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