У меня есть класс, который выглядит так
template<class T>
class Matrix {
...
template<class T2> auto dot(Matrix<T2> const& other);
}
Вот моя реализация под объявлением в заголовочном файле:
template<class T, class T2>
auto Matrix<T>::dot(Matrix<T2> const& other) {
[impl]
}
Ошибка, которую я получаю, выглядит следующим образом:
(C2244) 'Matrix<T>::dot' : unable to match function definition to an existing declaration
Куда я иду не так?