From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 3351 invoked by alias); 17 Mar 2006 18:28:44 -0000 Received: (qmail 3343 invoked by uid 22791); 17 Mar 2006 18:28:43 -0000 X-Spam-Check-By: sourceware.org Received: from rigel.lunarpages.com (HELO rigel.lunarpages.com) (64.235.230.106) by sourceware.org (qpsmtpd/0.31) with ESMTP; Fri, 17 Mar 2006 18:28:04 +0000 Received: from cpe-071-070-217-234.nc.res.rr.com ([71.70.217.234] helo=[10.0.0.101]) by rigel.lunarpages.com with esmtpsa (TLSv1:RC4-SHA:128) (Exim 4.52) id 1FKJgB-0005JU-Hx for gdb@sources.redhat.com; Fri, 17 Mar 2006 10:28:03 -0800 Mime-Version: 1.0 (Apple Message framework v746.2) In-Reply-To: <006d01c649b2$6171c490$a501a8c0@CAM.ARTIMI.COM> References: <006d01c649b2$6171c490$a501a8c0@CAM.ARTIMI.COM> Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed Message-Id: <51002867-92EF-4D41-BB5A-9EE2EB2C5FB4@encodia.biz> Content-Transfer-Encoding: 7bit From: rob@encodia.biz Subject: Re: C++, "too few arguments in function call" error? Date: Fri, 17 Mar 2006 19:06:00 -0000 To: gdb@sources.redhat.com X-IsSubscribed: yes Mailing-List: contact gdb-help@sourceware.org; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sourceware.org X-SW-Source: 2006-03/txt/msg00133.txt.bz2 On Mar 17, 2006, at 6:03 AM, Dave Korn wrote: > On 17 March 2006 03:57, rob@encodia.biz wrote: >> >> (gdb) p set1.begin() >> too few arguments in function call > > This is a total shot in the dark, but maybe something's gone > wrong and it's > expecting you to pass the this pointer as an explicit first > argument rather > than an implicit one? That does work sometimes. But if the class is a template, or if the method is overloaded, I can't do it, or I have to type way too much, or I get this error. Examples... (gdb) p set1.begin(&set1) Cannot resolve method set,std::allocator >::begin to any overloaded instance (gdb) p set, std::allocator >::begin(&set1) $1 = { _M_node = 0x3008c0 } That works, but it's horrible. (gdb) p set, std::allocator >::size(&set1) $8 = (gdb) p (int)(set, std::allocator >::size(&set1)) Invalid cast. I can't get the size(), bu it's similar to begin() -- both are inline, both return types that are typedef'd in the same place. (gdb) p vector >::begin(&steps) non-unique member `begin' requires type instantiation ? Rob