From: Craig Maloney <cmaloney@physics.ucsb.edu>
To: gdb@sources.redhat.com
Subject: operator* for iterators
Date: Thu, 06 Dec 2001 12:33:00 -0000 [thread overview]
Message-ID: <3C0FD7F3.E2638F61@physics.ucsb.edu> (raw)
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
next reply other threads:[~2001-12-06 20:33 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2001-12-06 12:33 Craig Maloney [this message]
2001-12-06 12:37 ` Daniel Jacobowitz
2001-12-07 15:48 ` Craig Maloney
2001-12-07 15:56 ` Daniel Berlin
2001-12-07 16:49 ` Craig Maloney
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=3C0FD7F3.E2638F61@physics.ucsb.edu \
--to=cmaloney@physics.ucsb.edu \
--cc=gdb@sources.redhat.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox