* disable unalignment detection when vectorization is not enabled

* revert MapBase unalignment detection
This commit is contained in:
Gael Guennebaud
2010-08-18 09:35:55 +02:00
parent 85fdcdf055
commit ddbbd7065d
3 changed files with 5 additions and 1 deletions

View File

@@ -45,7 +45,9 @@ template<typename VectorType> void map_class_vector(const VectorType& m)
VectorType ma3 = Map<VectorType>(array3unaligned, size);
VERIFY_IS_EQUAL(ma1, ma2);
VERIFY_IS_EQUAL(ma1, ma3);
#ifdef EIGEN_VECTORIZE
VERIFY_RAISES_ASSERT((Map<VectorType,Aligned>(array3unaligned, size)))
#endif
ei_aligned_delete(array1, size);
ei_aligned_delete(array2, size);