diff --git a/include/eigenpy/std-vector.hpp b/include/eigenpy/std-vector.hpp index cb6d869e0ff4d2d84f719b33fa5d6ae37c8b352d..eddf03ecfeaeb599b9497d81781edb906b15c47b 100644 --- a/include/eigenpy/std-vector.hpp +++ b/include/eigenpy/std-vector.hpp @@ -14,6 +14,7 @@ #include <string> #include <vector> +#include "eigenpy/eigenpy.hpp" #include "eigenpy/config.hpp" #include "eigenpy/copyable.hpp" #include "eigenpy/eigen-to-python.hpp" @@ -445,7 +446,7 @@ void EIGENPY_DLLAPI exposeStdVector(); template <typename MatType> void exposeStdVectorEigenSpecificType(const char *name) { - typedef std::vector<MatType> VecMatType; + typedef std::vector<MatType, Eigen::aligned_allocator<MatType> > VecMatType; std::string full_name = "StdVec_"; full_name += name; StdVectorPythonVisitor<VecMatType, false>::expose(