Article View: comp.std.c++
Article #2025Re: Template member function specializations
From: Mumit Khan
Date: Sun, 24 Sep 1995 20:24
Date: Sun, 24 Sep 1995 20:24
44 lines
2079 bytes
2079 bytes
In article <199509202116.PAA02269@colobus.aoc.nrao.edu>,
Brian Glendenning <bglenden@aoc.nrao.edu> wrote:
>
>
>Can an individual member function of a template class be specialized. If so, how
>is it declared? Thanks.
>
>Brian
DWP says the following:
====
14.5 Template specialization [temp.spec]
1 Except for a type member or template class member of a non-specialized
template class, the following can be declared by a declaration where
the declared name is a template-id: a specialized template function, a
template class, or a static member of a template; that is:
specialization:
declaration
[Note: a static member of a template can only be specialized in a #define-
inition due to syntactic restrictions. ] [Example:
====
Since a member function of a template class is none of the following:
- specialized template function
- template class
- static member of a template
I would read this as saying that a member function of a template class
cannot be specialized.
Wonder why the restriction on template class members ...
regards,
mumit -- khan@xraylith.wisc.edu
http://www.xraylith.wisc.edu/~khan/
Cc: c.std.c++, Brian Glendenning <bglenden@aoc.nrao.edu>
[ 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:
<43v9ti$15s8@news.doit.wisc.edu>Path:
arc1-ca.pugleaf.net!engnews2.Eng.Sun.COM!taumet!clamageReferences:
<199509202116.PAA02269@colobus.aoc.nrao.edu>Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!engnews2.Eng.Sun.COM!taumet!clamage From: khan@xraylith.wisc.edu (Mumit Khan) Newsgroups: comp.std.c++ Subject: Re: Template member function specializations Date: 24 Sep 1995 20:24:02 GMT Organization: Center for X-ray Lithography, UW-Madison Approved: clamage@eng.sun.com (comp.std.c++) Message-ID: <43v9ti$15s8@news.doit.wisc.edu> References: <199509202116.PAA02269@colobus.aoc.nrao.edu> NNTP-Posting-Host: taumet.eng.sun.com Content-Type: text X-Nntp-Posting-Host: modi.xraylith.wisc.edu Content-Length: 1256 Originator: clamage@taumet