MESSAGE
DATE | 2011-06-05 |
FROM | Ruben Safir
|
SUBJECT | Subject: [NYLXS - HANGOUT] (fwd) Re: Anonymous namespace
|
-- forwarded message -- Path: reader1.panix.com!panix!not-for-mail From: Ruben Safir Newsgroups: comp.lang.c++ Subject: Re: Anonymous namespace Date: Sat, 4 Jun 2011 05:37:41 +0000 (UTC) Organization: PANIX Public Access Internet and UNIX, NYC Lines: 20 Message-ID: References: <94rjavFbjiU7-at-mid.individual.net> <94tnpvFivcU1-at-mid.individual.net> <94ttj9FivcU4-at-mid.individual.net> NNTP-Posting-Host: www2.mrbrklyn.com Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Trace: reader1.panix.com 1307165861 20952 96.57.23.82 (4 Jun 2011 05:37:41 GMT) X-Complaints-To: abuse-at-panix.com NNTP-Posting-Date: Sat, 4 Jun 2011 05:37:41 +0000 (UTC) X-Blackjet: Blackjet is a Yankee Fan X-DRMisTHEFT: Use GNU Linux today X-From: A Dark Cloud X-LOCATION: Brooklyn NY - Forget abou' it! X-NYLXS: Really - yah think computers are supposed to be broken? User-Agent: Pan/0.133 (House of Butterflies) Xref: panix comp.lang.c++:1086014
On Sat, 04 Jun 2011 17:19:37 +1200, Ian Collins wrote:
> the other is to instantiate all possibilities in the > library.
How can you do that? You would need to know what all the class T's can be and in a language where you create types on the fly, you can't do that.
You can have limited predefined number of partial or explicit specifications for the general template. Or I guess you can instantiate them, but I can't think of how that can be done except within a local namespace
vector a;
but then you have to call for a.
Ruben -- end of forwarded message --
|
|