home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #20 / NN_1992_20.iso / spool / comp / lang / cplus / 13449 < prev    next >
Encoding:
Text File  |  1992-09-09  |  768 b   |  24 lines

  1. Newsgroups: comp.lang.c++
  2. Path: sparky!uunet!secapl!Cookie!frank
  3. From: frank@Cookie.secapl.com (Frank Adams)
  4. Subject: Re: template typedef
  5. Message-ID: <1992Sep09.212221.30447@Cookie.secapl.com>
  6. Date: Wed, 09 Sep 1992 21:22:21 GMT
  7. References: <1992Aug27.132128.10015@ericsson.se>
  8. Organization: Security APL, Inc.
  9. Lines: 13
  10.  
  11. In article <1992Aug27.132128.10015@ericsson.se> jonas@falcon.ericsson.se (Jonas Nygren) writes:
  12. >I wonder if the following construct for templates and typedefs ever
  13. >have been considered. Would it be possible to add this to the
  14. >language.
  15. >
  16. >template<class S, class T> X {};
  17. >
  18. >template<class T> typedef X<Y,T> xy;
  19. >
  20. >xy<Z> xyz; // equiv to X<Y,Z>
  21.  
  22. I have also wanted this.  Note that xy<Z> must be the same type as X<Y,Z>,
  23. not just a subclass.
  24.