diff --git a/include/eigenpy/fwd.hpp b/include/eigenpy/fwd.hpp index 3dfa9b154b1704040938accfa60dc29f10aed109..50a796e4ab634c070d09ab9b81e00571ec64416f 100644 --- a/include/eigenpy/fwd.hpp +++ b/include/eigenpy/fwd.hpp @@ -20,6 +20,8 @@ #define EIGENPY_DEFAULT_ALIGNMENT_VALUE Eigen::Aligned #endif +#define EIGENPY_NO_ALIGNMENT_VALUE Eigen::Unaligned + #include "eigenpy/expose.hpp" namespace eigenpy diff --git a/include/eigenpy/ref.hpp b/include/eigenpy/ref.hpp index 4ffff43950e4e69fd0464267de8be8a4835c281c..c2eb21d5b6bbf0e7249183296327a121c829f945 100644 --- a/include/eigenpy/ref.hpp +++ b/include/eigenpy/ref.hpp @@ -20,10 +20,10 @@ namespace eigenpy template<typename PlainObjectTypeT> struct Ref - : Eigen::Ref<PlainObjectTypeT,EIGENPY_DEFAULT_ALIGNMENT_VALUE,typename StrideType<PlainObjectTypeT>::type> + : Eigen::Ref<PlainObjectTypeT,EIGENPY_NO_ALIGNMENT_VALUE,typename StrideType<PlainObjectTypeT>::type> { public: - typedef Eigen::Ref<PlainObjectTypeT,EIGENPY_DEFAULT_ALIGNMENT_VALUE,typename eigenpy::template StrideType<PlainObjectTypeT>::type> Base; + typedef Eigen::Ref<PlainObjectTypeT,EIGENPY_NO_ALIGNMENT_VALUE,typename eigenpy::template StrideType<PlainObjectTypeT>::type> Base; private: typedef Eigen::internal::traits<Base> Traits;