Here is the code snippet from the code, the line it complains about is the last line in the snippet, };
//not recommended to temper with
//T* GetRawData() {
// return &(_1_MatrixData[0]);
//}
T* GetRawData() { return 0; }
protected:
//elem = Ycoord * Size_X + Xcoord;
T _1_MatrixData[Size_X * Size_Y];
};
It confuses me as there isn't & in the vicinity.
It's a header file with 275 lines, so I'm not going to post everything here, just the snippet, if you need the rest of the code it's in the "mymath.hpp" header on this repo: https://github.com/siladrenja/sandbox , the error is at the line 114