From: Mark Mitchell <mmitchell@usa.net>
To: greened@eecs.umich.edu
Cc: egcs@cygnus.com
Subject: Template members
Date: Fri, 13 Feb 1998 02:28:00 -0000 [thread overview]
Message-ID: <199802122334.XAA20354@quickstep.stanford.edu> (raw)
In-Reply-To: <Pine.LNX.3.96.980212122117.11321A-100000@drakh.eecs.umich.edu>
>>>>> "David" == David Greene <greened@eecs.umich.edu> 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<myAttribute>();
Your code is incorrect. You need to say:
(*e).getNode()->template getAttribute<myAttribute>();
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
next prev parent reply other threads:[~1998-02-13 2:28 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
1998-02-12 20:07 David Greene
1998-02-13 2:04 ` Alexandre Oliva
1998-02-13 2:28 ` Mark Mitchell [this message]
[not found] <Pine.LNX.3.96.980212122117.11321A-100000.cygnus.egcs@drakh.eecs.umich.edu>
1998-02-12 22:51 ` Jason Merrill
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=199802122334.XAA20354@quickstep.stanford.edu \
--to=mmitchell@usa.net \
--cc=egcs@cygnus.com \
--cc=greened@eecs.umich.edu \
/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;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).