I have two matrices, m1 and m2. So long as they are the same size (currently both are 2x2) then the following statement works just fine:
cout << prod(m1, m2) << endl;
However, when I change the size of either matrices I get the following error at compile time: