K
Kevin Frey
Hello,
Let's say I have the following:
template< class T > class MyClass
{
void Func( );
};
and I want to declare a specialisation for Func( ) in the presence of
a particular type, eg:
template< > void MyClass< long >::Func( )
{
// body of function here
}
Whereabouts should the above specialisation be placed - in the header,
or in the source file (with a corresponding prototype declared as
follows):
template< > void MyClass< long >::Func( );
Thanks
Kevin.
Let's say I have the following:
template< class T > class MyClass
{
void Func( );
};
and I want to declare a specialisation for Func( ) in the presence of
a particular type, eg:
template< > void MyClass< long >::Func( )
{
// body of function here
}
Whereabouts should the above specialisation be placed - in the header,
or in the source file (with a corresponding prototype declared as
follows):
template< > void MyClass< long >::Func( );
Thanks
Kevin.