Article View: comp.std.c++
Article #1734Re: [Q] Templates Functions within Template Cl
From: Steve Clamage
Date: Thu, 17 Aug 1995 19:18
Date: Thu, 17 Aug 1995 19:18
24 lines
1588 bytes
1588 bytes
In article <3vj6m8$8it@engnews2.eng.sun.com>,
Steve Clamage <clamage@Eng.Sun.COM> wrote:
>>I'm trying to create a template function within a template class. Is there
>>any way to do this?
>
>Nested templates were disallowed by the ARM. The C++ draft standard
>allows them, but I don't know of any widely-available compiler that
>implements them yet.
Well, I feel better knowing that they _will_ be allowed. People have
suggested making the class have two parameterized types, but that changes
the functionality quite a bit and will not work for what I need.
Do you know why this was disallowed originally?
Brian
( bcwhite@bnr.ca )
-------------------------------------------------------------------------------
In theory, theory and practice are the same. In practice, they're not.
[ 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:
<4104md$jg8@engnews2.Eng.Sun.COM>Path:
arc1-ca.pugleaf.net!engnews2.Eng.Sun.COM!taumet!clamageShow Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!engnews2.Eng.Sun.COM!taumet!clamage From: clamage@taumet.Eng.Sun.COM (Steve Clamage) Newsgroups: comp.std.c++ Subject: Re: [Q] Templates Functions within Template Cl Date: 17 Aug 1995 19:18:37 GMT Organization: Bell-Northern Research Ltd. Approved: clamage@eng.sun.com (comp.std.c++) Message-ID: <4104md$jg8@engnews2.Eng.Sun.COM> NNTP-Posting-Host: taumet.eng.sun.com Content-Type: text X-Nntp-Posting-Host: bcarsd26.bnr.ca Content-Length: 868 X-Lines: 20