Hi everybody!,
I'm creating a class called matrix which I'm going to use to make matrices. Anyway, I'm new to using vectors so I've probably declared them wrong. Could you please tell me what I'm doing wrong and show me how to fix them?
matrix.h:14: error: invalid use of non-static data member ‘matrix::elements’
matrix.h:15: error: from this location
matrix.h:14: error: invalid use of non-static data member ‘matrix::elements’
matrix.h:15: error: from this location
matrix.h:15: error: ‘matrix::elements’ cannot appear in a constant-expression
matrix.h:15: error: template argument 1 is invalid
matrix.h:15: error: template argument 2 is invalid
matrix.h:27: error: expected ‘;’ before ‘}’ token
matrix.h:27: error: expected `;' before ‘}’ token
matrix.h:14: error: invalid use of non-static data member ‘matrix::elements’
matrix.h:15: error: from this location
matrix.h:14: error: invalid use of non-static data member ‘matrix::elements’
matrix.h:15: error: from this location
matrix.h:15: error: ‘matrix::elements’ cannot appear in a constant-expression
matrix.h:15: error: template argument 1 is invalid
matrix.h:15: error: template argument 2 is invalid
matrix.h:27: error: expected ‘;’ before ‘}’ token
matrix.h:27: error: expected `;' before ‘}’ token