🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.std.c++
Article #2842

Re: Class template specialization ?

#2842
From: David Vandevoorde
Date: Mon, 04 Dec 1995 22:55
22 lines
1315 bytes
>>>>> "ML" == Mia Lahteenmaki <mlahteen@cs.Helsinki.FI> writes:
[...]
ML> template<class T> class Ref {...};
ML> //primary template
ML> template<class T1> class Collection {...};

ML> // How should I declare now the specialization ? Like this?
ML> template<class T1> class Collection<Ref<T> > {...};  

I think it should be:

	template<class T>
	class Collection<Ref<T> > // ...

Very few (if any) compilers support this form of partial
specialization yet.

	Daveed

[ 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: <VANDEVOD.95Dec4120711@avs.cs.rpi.edu>
Path: arc1-ca.pugleaf.net!engnews2.Eng.Sun.COM!taumet!clamage
References: <49ssga$2eu@hydra.cs.Helsinki.FI>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!engnews2.Eng.Sun.COM!taumet!clamage
From: vandevod@cs.rpi.edu (David Vandevoorde)
Newsgroups: comp.std.c++
Subject: Re: Class template specialization ?
Date: 4 Dec 1995 22:55:38 GMT
Organization: RPI Computer Science
Approved: clamage@eng.sun.com (comp.std.c++)
Message-ID: <VANDEVOD.95Dec4120711@avs.cs.rpi.edu>
References: <49ssga$2eu@hydra.cs.Helsinki.FI>
NNTP-Posting-Host: taumet.eng.sun.com
Content-Type: text
X-Nntp-Posting-Host: avs.cs.rpi.edu
In-Reply-To: mlahteen@cs.Helsinki.FI's message of 4 Dec 1995 16:30:04 GMT
Content-Length: 466
X-Lines: 18
Originator: clamage@taumet