重载operator+ 遇到问题
这是我的 +的重载。
template<class T, int row, int col>const CMatrix<T, row, col> CMatrix<T, row, col>::operator +(const CMatrix& tmp){ CMatrix<T, row, col> ans(0); ...... ......(过程略,很简单) ...... return ans;}CMatrix<T, row, col>::~CMatrix(){delete data;}template<typename T, std::size_t R, std::size_t C>struct matrix{ T data_[R][C]; //...};