|
Boost : |
From: Daryle Walker (darylew_at_[hidden])
Date: 2001-09-04 19:58:38
on 9/4/01 9:17 PM, Daryle Walker at darylew_at_[hidden] wrote:
> I'm trying to use reverse iterators for a bitset iterator class I wrote. The
> problem is that my attempts choke on the use of the rbegin reverse iterator,
> which corresponds to the end regular iterator. The off-by-1 effect I've read
> about doesn't happen and the reverse iterator tries to dereference past the
> bitset. What's wrong? You can check out version zero of more_bitset.zip:
>
> http://groups.yahoo.com/group/boost/files/more_bitset.zip
My test results were:
//=========================================================================
Doing forward iterator tests.
Doing forward iterator access test 0.
Doing forward iterator access test 1.
Doing forward iterator access test 2.
Doing forward iterator access test 3.
Doing forward iterator access test 4.
Doing forward iterator access test 5.
Doing forward iterator access test 6.
Doing forward iterator access test 7.
Doing forward iterator access test 8.
Doing forward iterator access test 9.
Doing forward iterator access test 10.
Doing forward iterator access test 11.
Doing forward iterator access test 12.
Doing forward iterator access test 13.
Doing forward iterator access test 14.
Doing forward iterator access test 15.
Doing forward iterator access test 16.
Doing forward iterator access test 17.
Doing forward iterator access test 18.
Doing forward iterator access test 19.
Doing forward iterator access test 20.
Doing forward iterator access test 21.
Doing forward iterator access test 22.
Doing forward iterator access test 23.
Doing forward iterator access test 24.
Doing forward iterator access test 25.
Doing forward iterator access test 26.
Doing forward iterator access test 27.
Doing forward iterator access test 28.
Doing forward iterator access test 29.
Doing forward iterator access test 30.
Doing forward iterator access test 31.
Doing reverse iterator tests.
Doing reverse iterator access test 31.
** uncaught exception: std::out_of_range: index out of range of bitset::test
**** returning with error code 200
********** errors detected; see stdout for details ***********
//=========================================================================
I'm using Metrowerks CodeWarrior Pro 5.3/Mac.
-- Daryle Walker Mac, Internet, and Video Game Junkie darylew AT mac DOT com
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk