home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #27 / NN_1992_27.iso / spool / comp / lang / cplus / 16746 < prev    next >
Encoding:
Text File  |  1992-11-22  |  1.2 KB  |  29 lines

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