mark more methods as const. also rename, Numeric.h->NumTraits.h

This commit is contained in:
Benoit Jacob
2007-10-13 20:53:30 +00:00
parent e445f5085a
commit 5f0af72abc
6 changed files with 11 additions and 10 deletions

View File

@@ -66,9 +66,9 @@ template<typename MatrixType> class Transpose
template<typename Scalar, typename Derived>
Transpose<Derived>
Object<Scalar, Derived>::transpose()
Object<Scalar, Derived>::transpose() const
{
return Transpose<Derived>(static_cast<Derived*>(this)->ref());
return Transpose<Derived>(static_cast<Derived*>(const_cast<Object*>(this))->ref());
}
#endif // EI_TRANSPOSE_H