Article View: comp.std.c++
Article #2914Re: ANSI compiant explicit template instantation
From: Gregory Bond
Date: Fri, 08 Dec 1995 04:06
Date: Fri, 08 Dec 1995 04:06
34 lines
2093 bytes
2093 bytes
In article <9512071347.AA29456@lts.sel.alcatel.de> James Kanze US/ESC 60/3/141 #40763 <kanze@lts.sel.alcatel.de> writes:
No. The standard offers no means of forcing template instantiation,
probably because forcing instantiation has no utility.
What about 14.4 (April DWP):
14.4 Explicit instantiation [temp.explicit]
1 A class or function specialization can be explicitly instantiated from
its template.
2 The syntax for explicit instantiation is:
explicit-instantiation:
template declaration
Where the unqualifier-id in the declaration shall be a template-id.
[Example:
template class Array<char>;
template void sort<char>(Array<char>&);
--end example]
[etc]
Greg.
--
Gregory Bond <gnb@bby.com.au> Burdett Buckeridge & Young Ltd Melbourne Australia
``Efforts to maintain the "purity" of a language only succeed in establishing an
elite class of people who know the shibboleths. Ordinary folks know better,
even if they don't know what "shibboleth" means.'' - Larry Wall
[ 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:
<GNB.95Dec8145511@dame.bby.com.au>Path:
arc1-ca.pugleaf.net!engnews1.Eng.Sun.COM!taumet!clamageReferences:
<4a4io5$s0v@cronkite.seas.gwu.edu> <9512071347.AA29456@lts.sel.alcatel.de>Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!engnews1.Eng.Sun.COM!taumet!clamage From: gnb@bby.com.au (Gregory Bond) Newsgroups: comp.std.c++ Subject: Re: ANSI compiant explicit template instantation Date: 8 Dec 1995 04:06:46 GMT Organization: Burdett, Buckeridge & Young Ltd., Melbourne, Australia Approved: clamage@eng.sun.com (comp.std.c++) Message-ID: <GNB.95Dec8145511@dame.bby.com.au> References: <4a4io5$s0v@cronkite.seas.gwu.edu> <9512071347.AA29456@lts.sel.alcatel.de> NNTP-Posting-Host: taumet.eng.sun.com Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Nntp-Posting-Host: dame.bby.com.au In-Reply-To: James Kanze US/ESC 60/3/141 #40763's message of 07 Dec 1995 18:25:59 GMT Content-Length: 1081 Originator: clamage@taumet