Skip to content

Commit 2c23887

Browse files
committed
[Conversion] Handle correctly the case Eigen::Ref
1 parent 813b28b commit 2c23887

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

include/eigenpy/details.hpp

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -338,7 +338,9 @@ namespace eigenpy
338338
&EigenFromPy<MatType>::construct,bp::type_id< Eigen::MatrixBase<MatType> >());
339339
}
340340
};
341-
341+
342+
#if EIGEN_VERSION_AT_LEAST(3,2,0)
343+
/// Template specialization for Eigen::Ref
342344
template<typename MatType>
343345
struct EigenFromPyConverter< eigenpy::Ref<MatType> >
344346
{
@@ -349,6 +351,7 @@ namespace eigenpy
349351
&EigenFromPy<MatType>::construct,bp::type_id<MatType>());
350352
}
351353
};
354+
#endif
352355

353356

354357
template<typename MatType>

0 commit comments

Comments
 (0)