Boost logo

Boost :

From: Fernando Cacciola (fcacciola_at_[hidden])
Date: 2001-08-27 10:07:08


----- Original Message -----
From: David Abrahams <david.abrahams_at_[hidden]>
To: Boost_at_Yahoogroups. Com <boost_at_[hidden]>
Sent: Monday, August 27, 2001 11:12 AM
Subject: Re: [boost] stride_iterator_policy

>[snip]
>
> An intersting fact about striding over matrices: to avoid undefined
behavior
> you usually need to allocate an extra row (or column) so that there's a
> valid end iterator position.
>
I don't follow you here.

What would be the value of that extra row or column? I figure that the
iterator could recognize that it reached the end of a row/column by
recognizing this *special* value, but since there is no way to determine
which value can be used to signal this I don't see how allocating an extra
row/col would work.

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