This is the mail archive of the gdb@sources.redhat.com mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

operator* for iterators


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]