home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.lang.c++
- Path: sparky!uunet!newsgate.watson.ibm.com!yktnews!admin!rubens!magerman
- From: magerman@watson.ibm.com (David Magerman;046923)
- Subject: Re: Nested Templates in g++
- Sender: news@watson.ibm.com (NNTP News Poster)
- Message-ID: <1992Nov23.061246.113768@watson.ibm.com>
- Date: Mon, 23 Nov 1992 06:12:46 GMT
- Disclaimer: This posting represents the poster's views, not necessarily those of IBM
- References: <1992Nov23.045517.10090@pasteur.Berkeley.EDU>
- Nntp-Posting-Host: rubens.watson.ibm.com
- Organization: IBM T.J. Watson Research Center
- Lines: 15
-
- In article <1992Nov23.045517.10090@pasteur.Berkeley.EDU> henryc@ic.Berkeley.EDU (Henry Chang) writes:
- >It is my understanding that nested templates in g++
- >are not yet supported. Does someone have a work-around?
- >
-
- What error message are you getting? Using the xlC++ 1.1.1, trying to
- refer to B<A<X,Y>> generates a syntax error, because the compiler
- tries to interpret the >> as an operator. If I use B<A<X,Y> >, it
- compiles and runs fine.
-
- However, since you're using g++, this might be irrelevant. (Could two
- independently written compilers have the same stupid error?)
-
- -- David Magerman
- magerman@watson.ibm.com
-