
8 Sep
2004
8 Sep
'04
8:29 p.m.
From: Neal D. Becker [mailto:ndbecker2@verizon.net] 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