Re: Bug#290782: multi_array.hpp: rebasing via range causes a crash while reindex works

19 Jan
2005
19 Jan
'05
6:18 a.m.
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
7451
Age (days ago)
7451
Last active (days ago)
0 comments
1 participants
participants (1)
-
Vassilii Khachaturov