🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

1 total messages Started by Xavier Tarrago Tue, 23 Jan 1996 10:39
Template class member functions reuse
#3078
Author: 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. ]
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads