diff options
author | Benoit Jacob <jacob.benoit.1@gmail.com> | 2010-12-22 17:45:37 -0500 |
---|---|---|
committer | Benoit Jacob <jacob.benoit.1@gmail.com> | 2010-12-22 17:45:37 -0500 |
commit | 75b7d98665dd144c44d7a113c6613f5f998be626 (patch) | |
tree | bc75d316e2ed8e679e744bc34f159dcb0f285243 /Eigen/src/Core/Reverse.h | |
parent | 3b6d97b51a7e7a4b0c69ae6be44b1c16d72c2e80 (diff) |
bug #54 - really fix const correctness except in Sparse
Diffstat (limited to 'Eigen/src/Core/Reverse.h')
-rw-r--r-- | Eigen/src/Core/Reverse.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Eigen/src/Core/Reverse.h b/Eigen/src/Core/Reverse.h index ed32b17fc..600744ae7 100644 --- a/Eigen/src/Core/Reverse.h +++ b/Eigen/src/Core/Reverse.h @@ -194,7 +194,7 @@ template<typename MatrixType, int Direction> class Reverse * */ template<typename Derived> -inline Reverse<Derived, BothDirections> +inline typename DenseBase<Derived>::ReverseReturnType DenseBase<Derived>::reverse() { return derived(); @@ -202,7 +202,7 @@ DenseBase<Derived>::reverse() /** This is the const version of reverse(). */ template<typename Derived> -inline const Reverse<Derived, BothDirections> +inline const typename DenseBase<Derived>::ConstReverseReturnType DenseBase<Derived>::reverse() const { return derived(); @@ -216,7 +216,7 @@ DenseBase<Derived>::reverse() const * the following additional features: * - less error prone: doing the same operation with .reverse() requires special care: * \code m = m.reverse().eval(); \endcode - * - no temporary object is created (currently there is one created but could be avoided using swap) + * - this API allows to avoid creating a temporary (the current implementation creates a temporary, but that could be avoided using swap) * - it allows future optimizations (cache friendliness, etc.) * * \sa reverse() */ |