C
chhenning
Hi there, I'm surprised the following construct seems to be illegal:
template< typename T >
struct A
{
template< typename K >
void do_some( const K& );
};
template< typename T >
template< typename K >
void A<T>::do_some<K>( const K& k )
{}
I have tried several compilers, include Comeau and they all fail to
compile. Is the above code not allowed by the current standard?
Regards,
Christian
template< typename T >
struct A
{
template< typename K >
void do_some( const K& );
};
template< typename T >
template< typename K >
void A<T>::do_some<K>( const K& k )
{}
I have tried several compilers, include Comeau and they all fail to
compile. Is the above code not allowed by the current standard?
Regards,
Christian