Article View: gnu.gcc.bug
Article #6141Re: error parsing templates
From: Wojciech Borkowski
Date: Thu, 18 Jan 1996 00:00
Date: Thu, 18 Jan 1996 00:00
20 lines
884 bytes
884 bytes
muckel@cs.purdue.edu ("Patrick A. Muckelbauer") wrote:
>It seems anyplace I use a template within a template the compiler
>gets a parsing error.
typedef T<T<int>> t;
>The error message produced is: "file.cc:5: parse error before `>'"
For all C++ compilers ">>" is a right shift operator!
Try with spaces:
typedef T< T<int> > t;
It's will be OK!
Wojciech Borkowski
Technical Details
Message-ID:
<4dlcgj$8uh@bilbo.nask.org.pl>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailReferences:
<199601161555.KAA22015@michelangelo.cs.purdue.edu>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 113d02,8a59322b52f48c78 X-Google-Attributes: gid113d02,public From: borkowsk@ulmus.bot.astrouw.edu.pl (Wojciech Borkowski) Subject: Re: error parsing templates Date: 1996/01/18 Message-ID: <4dlcgj$8uh@bilbo.nask.org.pl> X-Deja-AN: 135956838 distribution: gnu sender: daemon@cis.ohio-state.edu references: <199601161555.KAA22015@michelangelo.cs.purdue.edu> organization: ISS UW or ZSiGR UW newsgroups: gnu.gcc.bug