From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 28116 invoked by alias); 6 Dec 2001 20:33:26 -0000 Mailing-List: contact gdb-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sources.redhat.com Received: (qmail 27955 invoked from network); 6 Dec 2001 20:33:22 -0000 Received: from unknown (HELO ilpostino.physics.ucsb.edu) (128.111.17.245) by sources.redhat.com with SMTP; 6 Dec 2001 20:33:22 -0000 Received: from physics.ucsb.edu (maloney@ppro.physics.ucsb.edu [128.111.16.233]) by ilpostino.physics.ucsb.edu (8.11.2/8.11.2) with ESMTP id fB6KXuv19165 for ; Thu, 6 Dec 2001 12:33:56 -0800 Message-ID: <3C0FD7F3.E2638F61@physics.ucsb.edu> Date: Thu, 06 Dec 2001 12:33:00 -0000 From: Craig Maloney Organization: UC Santa Barbara X-Mailer: Mozilla 4.77 [en] (X11; U; Linux 2.2.19pre17-compact i686) X-Accept-Language: en MIME-Version: 1.0 To: gdb@sources.redhat.com Subject: operator* for iterators Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-SW-Source: 2001-12/txt/msg00059.txt.bz2 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