|
-
January 14th, 2009, 11:34 AM
#1
const Class& class
friend ostream& operator<<(ostream& output, const Matrix& matrix)
Error 2 error C2662: 'Matrix<T>::YDim' : cannot convert 'this' pointer from 'const Matrix<T>' to 'Matrix<T> &'
I seem to get the same error for all of the functions I'm defining with a const Matrix& matrix, but when I remove the const it works fine.
Thanks in advance!
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|