Skip to content

Commit a85b2f6

Browse files
committed
core: fix std support for Eigen types
Should use Eigen::aligned_allocator
1 parent 7bf66d1 commit a85b2f6

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

include/eigenpy/std-vector.hpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
#include <string>
1515
#include <vector>
1616

17+
#include "eigenpy/eigenpy.hpp"
1718
#include "eigenpy/config.hpp"
1819
#include "eigenpy/copyable.hpp"
1920
#include "eigenpy/eigen-to-python.hpp"
@@ -445,7 +446,7 @@ void EIGENPY_DLLAPI exposeStdVector();
445446

446447
template <typename MatType>
447448
void exposeStdVectorEigenSpecificType(const char *name) {
448-
typedef std::vector<MatType> VecMatType;
449+
typedef std::vector<MatType, Eigen::aligned_allocator<MatType> > VecMatType;
449450
std::string full_name = "StdVec_";
450451
full_name += name;
451452
StdVectorPythonVisitor<VecMatType, false>::expose(

0 commit comments

Comments
 (0)