home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #19 / NN_1992_19.iso / spool / comp / lang / cplus / 12963 < prev    next >
Encoding:
Text File  |  1992-08-27  |  637 b   |  25 lines

  1. Newsgroups: comp.lang.c++
  2. Path: sparky!uunet!mcsun!sunic!ericom!falcon!jonas
  3. From: jonas@falcon.ericsson.se (Jonas Nygren)
  4. Subject: template typedef
  5. Message-ID: <1992Aug27.132128.10015@ericsson.se>
  6. Followup-To: comp.lang.c++
  7. Sender: news@ericsson.se
  8. Nntp-Posting-Host: falcon.ericsson.se
  9. Organization: Ericsson Telecom, Stockholm, Sweden
  10. Date: Thu, 27 Aug 1992 13:21:28 GMT
  11. Lines: 12
  12.  
  13. I wonder if the following construct for templates and typedefs ever
  14. have been considered. Would it be possible to add this to the
  15. language.
  16.  
  17. template<class S, class T> X {};
  18.  
  19. template<class T> typedef X<Y,T> xy;
  20.  
  21. xy<Z> xyz; // equiv to X<Y,Z>
  22.  
  23. /jonas
  24.  
  25.