Enclosed is my confession to the upstream list. Should have CCed this here.

You are welcome to close the bug (/me LARTed), unless you feel that the intro 
docs are vague enough for others to fall into the same trap and thus need 
exaction.

----------  Forwarded Message  ----------

Subject: Re: Bug#290782: multi_array.hpp: rebasing via range causes a crash 
while reindex works
Date: Wednesday 19 January 2005 08:18
From: Vassilii Khachaturov <[EMAIL PROTECTED]>
To: boost@lists.boost.org

> >  arr a(boost::extents[ arr::extent_range(1, 1) ]);
>
> I'm not a multi.array user, but this is an invalid range. See
> Table 4 [1] Invariants:
> o Valid range [a.begin(),a.end()) is a valid range.

Thanks. It looks like I have misunderstood the extent_range ctor semantics.
Upon re-reading the multi_array reference page in its extent_range section,
I see

extent_range(index start, index finish)

    This constructor defines the half open interval [start,finish). The
expression finish must be greater than start.

(I assumed that finish is included in the interval, hence the snippet.)

Vassilii

-------------------------------------------------------


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to