From a85b2f660c771dddf51cf396ea4143d8ecf21552 Mon Sep 17 00:00:00 2001 From: Justin Carpentier <justin.carpentier@inria.fr> Date: Sat, 7 Jan 2023 16:54:48 +0100 Subject: [PATCH] core: fix std support for Eigen types Should use Eigen::aligned_allocator --- include/eigenpy/std-vector.hpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/include/eigenpy/std-vector.hpp b/include/eigenpy/std-vector.hpp index cb6d869e..eddf03ec 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( -- GitLab