#include "imatrix.h" #include "imatrix_nm.h" #include "matrix.h" struct Chess_piece { }; int main() { Matrix m1; m1 = m1 + 2; m1.m(2,2) = 42; try { m1.m(6,6) = 0; } catch(...) { // expected } Matrix m2; auto m3 = m1 * m2; Matrix c1; auto c2 = c1 + 42; }