diff options
author | Benoit Jacob <jacob.benoit.1@gmail.com> | 2008-03-10 17:23:11 +0000 |
---|---|---|
committer | Benoit Jacob <jacob.benoit.1@gmail.com> | 2008-03-10 17:23:11 +0000 |
commit | 01572b9f54e769a7d1bb3d5073c264a5fbc7ce42 (patch) | |
tree | ea9b9ef0469040e8b8ae0805f77d726c319dfeac /Eigen/src/Core/Swap.h | |
parent | 9d9d81ad71a52c33ba4db9f8a6059d435d279316 (diff) |
big change: MatrixBase only takes one template parameter "Derived", the
template parameter "Scalar" is removed. This is achieved by introducting a
template <typename Derived> struct Scalar to achieve a forward-declaration of
the Scalar typedefs.
Diffstat (limited to 'Eigen/src/Core/Swap.h')
-rw-r--r-- | Eigen/src/Core/Swap.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Eigen/src/Core/Swap.h b/Eigen/src/Core/Swap.h index 3a0a387b0..c7a1199fa 100644 --- a/Eigen/src/Core/Swap.h +++ b/Eigen/src/Core/Swap.h @@ -25,11 +25,11 @@ #ifndef EIGEN_SWAP_H #define EIGEN_SWAP_H -template<typename Scalar, typename Derived> +template<typename Derived> template<typename OtherDerived> -void MatrixBase<Scalar, Derived>::swap(const MatrixBase<Scalar, OtherDerived>& other) +void MatrixBase<Derived>::swap(const MatrixBase<OtherDerived>& other) { - MatrixBase<Scalar, OtherDerived> *_other = const_cast<MatrixBase<Scalar, OtherDerived>*>(&other); + MatrixBase<OtherDerived> *_other = const_cast<MatrixBase<OtherDerived>*>(&other); if(Traits::SizeAtCompileTime == Dynamic) { Scalar tmp; |