🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Template class member functions reuse

#3078
From: Xavier Tarrago
Date: Tue, 23 Jan 1996 10:39
32 lines
1321 bytes
  Assume a class template specialization:
template <class T> class dummy {
public:
	dummy();
	dummy( const dummy<T>&);
	~dummy();

	f1( double);
	f2( int);
	f3...
..};
template <double> class dummy {
public:
	dummy();
	dummy( const dummy<T>&);
	~dummy();

	f1( double);
	f2( int);
	f3...
..};
 Assume that only member function f1 needs to be redefined.
 Have all function members f2, f3, ... to be available in the specialized
form ?
 Or can I expect that the compiler will expand them from their
template <class T> definition.
  Thank for help.
   X.Tarrago
---
[ 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: <4e2bpd$4fm@news.cea.fr>
Path: arc1-ca.pugleaf.net!in1.uu.net!bounce-back

Show Full Headers
Complete Article Headers
From: Xavier Tarrago <tarrago@lcus15.saclay.cea.fr>
Message-ID: <4e2bpd$4fm@news.cea.fr>
X-Original-Date: 23 Jan 1996 10:03:25 GMT
Path: arc1-ca.pugleaf.net!in1.uu.net!bounce-back
Date: 23 Jan 96 10:39:57 GMT
Approved: fjh@cs.mu.oz.au
Newsgroups: comp.std.c++
Subject: Template class member functions reuse
Organization: CEA Commissariat a l'Energie Atomique, France.
X-Auth: PGPMoose V1.1 PGP comp.std.c++
 iQBFAgUBMQS7C+EDnX0m9pzZAQGSVgF/fdyUq4PDOcVnzYb8wlpiqzlE5zGlHBwt
 soxPAIwbHAdHR22X5DUU5I8TYuFhYs5x
 =BmK+