template <class T, int const ROWNUM, int const COLNUM> class Matrix {}; Matrix<bool,5,20> m1; template <class T> class Matrix2 { static int const ROWNUM = 5; static int const COLNUM = 20;}; Matrix<bool> m2;
Standard input is empty
prog.cpp:15: error: wrong number of template arguments (1, should be 3) prog.cpp:2: error: provided for ‘template<class T, int ROWNUM, int COLNUM> class Matrix’ prog.cpp:15: error: invalid type in declaration before ‘;’ token
Standard output is empty
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!