T
Thomas Maier-Komor
Hi everybody,
I am trying to figure out, how to define a partial member
specialization... Is this possible? What is the syntax
for this?
I have:
template <class A, class B>
class T
{
public:
T(void);
/* and some more functions which are not relevant here
but should be identical in the unspecialized and
specialized template classes
*/
};
and I would like to do a specialization for the constructor
of T. This constructor should have two arguments (e.g.
T(int,int) ) and the specialization should only be valid
if template argument A is a certain predefined class.
Any ideas? I have been searching Vandervoorde/Josuttis
C++ Templates with no success...
Thanks,
Tom
I am trying to figure out, how to define a partial member
specialization... Is this possible? What is the syntax
for this?
I have:
template <class A, class B>
class T
{
public:
T(void);
/* and some more functions which are not relevant here
but should be identical in the unspecialized and
specialized template classes
*/
};
and I would like to do a specialization for the constructor
of T. This constructor should have two arguments (e.g.
T(int,int) ) and the specialization should only be valid
if template argument A is a certain predefined class.
Any ideas? I have been searching Vandervoorde/Josuttis
C++ Templates with no success...
Thanks,
Tom