template <typename T, unsigned D>
class Matrix
{
public:
T Determinant( void ) const;
T m[D][D];
};
template <typename T>
T Matrix<T, 2>::Determinant( void ) const
{
return m[0][0] * m[1][1] - m[1][0] * m[0][1];
}
Hello, forum. I have this code, yet I get error:
1>c:\dropbox\projects\math\matrix.h(319): error C3860: template argument list following class template name must list parameters in the order used in template parameter list
1>c:\dropbox\projects\math\matrix.h(319): error C2976: 'Math::Matrix<T,D>' : too few template arguments
No Idea what is wrong. Please help.