How to define a nested member template outside a class template?

template <class T>
template <class T2> 
void MyClass<T>::MyFunc2(T2* pData) 
{ 
  //...implementation goes here 
}

$14.5.2/1 – “A template can be
declared within a class or class
template; such a template is called a
member template. A member template can
be defined within or outside its class
definition or class template
definition. A member template of a
class template that is defined outside
of its class template definition shall
be specified with the
template-parameters of the class
template followed by the
template-parameters of the member
template.

Leave a Comment

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)