home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.lang.c++
- Path: sparky!uunet!mcsun!sunic!ericom!falcon!jonas
- From: jonas@falcon.ericsson.se (Jonas Nygren)
- Subject: template typedef
- Message-ID: <1992Aug27.132128.10015@ericsson.se>
- Followup-To: comp.lang.c++
- Sender: news@ericsson.se
- Nntp-Posting-Host: falcon.ericsson.se
- Organization: Ericsson Telecom, Stockholm, Sweden
- Date: Thu, 27 Aug 1992 13:21:28 GMT
- Lines: 12
-
- I wonder if the following construct for templates and typedefs ever
- have been considered. Would it be possible to add this to the
- language.
-
- template<class S, class T> X {};
-
- template<class T> typedef X<Y,T> xy;
-
- xy<Z> xyz; // equiv to X<Y,Z>
-
- /jonas
-
-