home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.lang.c++
- Path: sparky!uunet!secapl!Cookie!frank
- From: frank@Cookie.secapl.com (Frank Adams)
- Subject: Re: template typedef
- Message-ID: <1992Sep09.212221.30447@Cookie.secapl.com>
- Date: Wed, 09 Sep 1992 21:22:21 GMT
- References: <1992Aug27.132128.10015@ericsson.se>
- Organization: Security APL, Inc.
- Lines: 13
-
- In article <1992Aug27.132128.10015@ericsson.se> jonas@falcon.ericsson.se (Jonas Nygren) writes:
- >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>
-
- I have also wanted this. Note that xy<Z> must be the same type as X<Y,Z>,
- not just a subclass.
-