Boost logo

Boost :

From: Stefan Seefeld (sseefeld_at_[hidden])
Date: 2004-09-08 15:29:15


> From: Neal D. Becker [mailto:ndbecker2_at_[hidden]]
> Sent: September 8, 2004 15:59

> u.begin() should return an iterator, and the iterator should define
> operator[]. Why doesn't this work?

huh ? Which iterator defines operator[] ? It may define operator+(size_type)
or similar, if it allows random access, but not operator[]. If you know
your container manages contiguous memory you may use '&*u.begin()' to
access the raw memory, and apply your operator[] to that.

Regards,
                Stefan


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