How to define a template member function of a template class [duplicate] April 26, 2023 by Tarik template<typename T> template<typename T2> void Foo<T>::Bar(const T2* t) { // stop tearing your hair out }