Skip to content

Commit 45f2aad

Browse files
committed
compilation: try a fix for windows
1 parent ecd8a5e commit 45f2aad

File tree

2 files changed

+8
-4
lines changed

2 files changed

+8
-4
lines changed

include/eigenpy/eigen-from-python.hpp

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -290,8 +290,10 @@ struct eigen_from_py_impl<MatType, Eigen::MatrixBase<MatType> > {
290290
static void registration();
291291
};
292292

293-
template <typename EigenType, typename _Scalar>
294-
struct EigenFromPy : eigen_from_py_impl<EigenType> {};
293+
template <typename EigenType>
294+
struct EigenFromPy<EigenType,
295+
typename boost::remove_reference<EigenType>::type::Scalar>
296+
: eigen_from_py_impl<EigenType> {};
295297

296298
template <typename MatType>
297299
void *eigen_from_py_impl<MatType, Eigen::MatrixBase<MatType> >::convertible(

include/eigenpy/eigen-to-python.hpp

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -155,8 +155,10 @@ struct eigen_to_py_impl_tensor {
155155

156156
EIGENPY_DOCUMENTATION_END_IGNORE
157157

158-
template <typename EigenType, typename Scalar>
159-
struct EigenToPy : eigen_to_py_impl<EigenType> {
158+
template <typename EigenType>
159+
struct EigenToPy<EigenType,
160+
typename boost::remove_reference<EigenType>::type::Scalar>
161+
: eigen_to_py_impl<EigenType> {
160162
static PyTypeObject const* get_pytype() { return getPyArrayType(); }
161163
};
162164

0 commit comments

Comments
 (0)