diff options
author | Benoit Jacob <jacob.benoit.1@gmail.com> | 2010-06-16 07:37:52 -0400 |
---|---|---|
committer | Benoit Jacob <jacob.benoit.1@gmail.com> | 2010-06-16 07:37:52 -0400 |
commit | d0d62e4437113c52362188331909181dbe3a3987 (patch) | |
tree | 9f53304bdca6fd525f57ab5fe9a1d5589480fcc1 | |
parent | 404aa963d980fcaea8daed899830378b9a6da506 (diff) |
fix #139, exactly the same issue as #138, this time in Assign.h: const Index is not a compile-time constant, must use enum.
-rw-r--r-- | Eigen/src/Core/Assign.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Eigen/src/Core/Assign.h b/Eigen/src/Core/Assign.h index 3a621b19f..0ecad610f 100644 --- a/Eigen/src/Core/Assign.h +++ b/Eigen/src/Core/Assign.h @@ -419,9 +419,9 @@ struct ei_assign_impl<Derived1, Derived2, LinearVectorizedTraversal, CompleteUnr typedef typename Derived1::Index Index; EIGEN_STRONG_INLINE static void run(Derived1 &dst, const Derived2 &src) { - const Index size = Derived1::SizeAtCompileTime; - const Index packetSize = ei_packet_traits<typename Derived1::Scalar>::size; - const Index alignedSize = (size/packetSize)*packetSize; + enum { size = Derived1::SizeAtCompileTime, + packetSize = ei_packet_traits<typename Derived1::Scalar>::size, + alignedSize = (size/packetSize)*packetSize }; ei_assign_innervec_CompleteUnrolling<Derived1, Derived2, 0, alignedSize>::run(dst, src); ei_assign_DefaultTraversal_CompleteUnrolling<Derived1, Derived2, alignedSize, size>::run(dst, src); |