From mboxrd@z Thu Jan 1 00:00:00 1970 From: Mark Mitchell To: greened@eecs.umich.edu Cc: egcs@cygnus.com Subject: Template members Date: Fri, 13 Feb 1998 02:28:00 -0000 Message-id: <199802122334.XAA20354@quickstep.stanford.edu> References: X-SW-Source: 1998-02/msg00602.html >>>>> "David" == David Greene writes: David> A quick question on template member syntax, and whether David> egcs is behaving correctly: David> I have a line of code that looks like this (e is an STL David> iterator): David> myAttribute attr = David> (*e).getNode()->getAttribute(); Your code is incorrect. You need to say: (*e).getNode()->template getAttribute(); David> egcs complains about a parse error before `>'. David> myAttribute is defined in a header file included by the David> source file. This worked before I used template members to David> get at attributes (direct request to the attribute manager David> object). David> Is my code incorrect, or is this a bug in egcs? I couldn't David> find anything in [3rd] to indicate that this would be a David> problem. David> -Dave -- Mark Mitchell mmitchell@usa.net Stanford University http://www.stanford.edu