Topic: Template class member functions reuse


Author: Xavier Tarrago <tarrago@lcus15.saclay.cea.fr>
Date: 1996/01/23
Raw View
  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. ]