Article View: comp.std.c++
Article #3133Re: An STL helper -- and template and type shenanigans
From: Fergus Henderson
Date: Mon, 29 Jan 1996 18:50
Date: Mon, 29 Jan 1996 18:50
26 lines
1600 bytes
1600 bytes
esap@cs.tut.fi (Pulkkinen Esa) writes:
>template <class T>
>class type_dereferencer<T*>
>{
>public:
> typedef T base_type;
>};
[...]
>And if typedef templates were allowed, you could use a slightly better
>syntax:
>
>template <class T>
>typedef type_dereferencer<T>::base_type type_dereference;
Can someone please remind me why we decided not to allow typedef templates?
It certainly seems like a bad idea to force everyone to use this silly
obfuscation for what is obviously a common need.
--
Fergus Henderson WWW: http://www.cs.mu.oz.au/~fjh
fjh@cs.mu.oz.au PGP: finger fjh@128.250.37.3
---
[ comp.std.c++ is moderated. Submission address: std-c++@ncar.ucar.edu.
Contact address: std-c++-request@ncar.ucar.edu. The moderation policy
is summarized in http://dogbert.lbl.gov/~matt/std-c++/policy.html. ]
Technical Details
Message-ID:
<9601281244.8175@mulga.cs.mu.OZ.AU>Path:
arc1-ca.pugleaf.net!fido.asd.sgi.com!austernReferences:
<30FCDA77.69CB@trilogy.com> <4e2dqo$gh@peippo.cs.tut.fi>Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!fido.asd.sgi.com!austern From: fjh@munta.cs.mu.OZ.AU (Fergus Henderson) Newsgroups: comp.std.c++ Subject: Re: An STL helper -- and template and type shenanigans Date: 29 Jan 1996 10:50:26 PST Organization: Computer Science, University of Melbourne, Australia Approved: austern@isolde.mti.sgi.com Message-ID: <9601281244.8175@mulga.cs.mu.OZ.AU> References: <30FCDA77.69CB@trilogy.com> <4e2dqo$gh@peippo.cs.tut.fi> NNTP-Posting-Host: isolde.mti.sgi.com X-Original-Date: Sun, 28 Jan 1996 23:44:08 +1100 X-Auth: PGPMoose V1.1 PGP comp.std.c++ iQBVAwUBMQ0XG0y4NqrwXLNJAQGn2wH/QJBpCT1G+3L2CD0lnKVPsfJcSPOkdKPD SHwdIpYDTsApcjQoc2tnnQ8odJTlYLxN0FqZwdg1EbpVL31/65OXiw== =Nebr Originator: austern@isolde.mti.sgi.com