From 2ee68a074efc1163358fb3b51fb4b23e83a05f97 Mon Sep 17 00:00:00 2001 From: Benoit Jacob Date: Wed, 12 Mar 2008 17:17:36 +0000 Subject: generalized ei_traits<>. Finally the importing macro is named EIGEN_BASIC_PUBLIC_INTERFACE because it does not only import the ei_traits, it also makes the base class a friend, etc. --- Eigen/src/Core/Swap.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'Eigen/src/Core/Swap.h') diff --git a/Eigen/src/Core/Swap.h b/Eigen/src/Core/Swap.h index c7a1199fa..5bd16530e 100644 --- a/Eigen/src/Core/Swap.h +++ b/Eigen/src/Core/Swap.h @@ -30,12 +30,12 @@ template void MatrixBase::swap(const MatrixBase& other) { MatrixBase *_other = const_cast*>(&other); - if(Traits::SizeAtCompileTime == Dynamic) + if(SizeAtCompileTime == Dynamic) { Scalar tmp; - if(Traits::IsVectorAtCompileTime) + if(IsVectorAtCompileTime) { - assert(OtherDerived::Traits::IsVectorAtCompileTime && size() == _other->size()); + assert(OtherDerived::IsVectorAtCompileTime && size() == _other->size()); for(int i = 0; i < size(); i++) { tmp = coeff(i); -- cgit v1.2.3