operator* for iterators

Craig Maloney cmaloney@physics.ucsb.edu
Thu Dec 6 12:33:00 GMT 2001


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



More information about the Gdb mailing list