This is the mail archive of the
gdb@sources.redhat.com
mailing list for the GDB project.
operator* for iterators
- From: Craig Maloney <cmaloney at physics dot ucsb dot edu>
- To: gdb at sources dot redhat dot com
- Date: Thu, 06 Dec 2001 12:41:23 -0800
- Subject: operator* for iterators
- Organization: UC Santa Barbara
I have intermittent problems trying to do the following:
If I have a list or vector iterator (say, li and vi)
and I try to dereference them, I get the following:
"structure has no component named operator*"
If I do:
(gdb) ptype vi
or
(gdb) ptype li
I see:
operator*
listed among the fields of both vi and li. I can detect
no pattern as to when "*vi" works and when it doesn't.
Of course, I can explicitly do a:
"*(vi->_M_current)"
But this gets pretty ugly with a couple layers of nesting.
Is this a known problem? I couldn't find anything on
this list. (I'll give specifics as to my system
if there is any interest).
Thanks -- Cheers all,
Craig