Skip to content

Commit 7df6480

Browse files
committed
core: fix template specialization
1 parent ca5c925 commit 7df6480

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

include/eigenpy/eigen-from-python.hpp

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -451,8 +451,8 @@ namespace eigenpy
451451
}
452452
};
453453

454-
template<typename MatType, typename _Scalar>
455-
struct EigenFromPy< Eigen::MatrixBase<MatType>, _Scalar > : EigenFromPy<MatType>
454+
template<typename MatType>
455+
struct EigenFromPy< Eigen::MatrixBase<MatType> > : EigenFromPy<MatType>
456456
{
457457
typedef EigenFromPy<MatType> EigenFromPyDerived;
458458
typedef Eigen::MatrixBase<MatType> Base;
@@ -465,8 +465,8 @@ namespace eigenpy
465465
}
466466
};
467467

468-
template<typename MatType, typename _Scalar>
469-
struct EigenFromPy< Eigen::EigenBase<MatType>, _Scalar > : EigenFromPy<MatType>
468+
template<typename MatType>
469+
struct EigenFromPy< Eigen::EigenBase<MatType>, typename MatType::Scalar > : EigenFromPy<MatType>
470470
{
471471
typedef EigenFromPy<MatType> EigenFromPyDerived;
472472
typedef Eigen::EigenBase<MatType> Base;
@@ -479,8 +479,8 @@ namespace eigenpy
479479
}
480480
};
481481

482-
template<typename MatType, typename _Scalar>
483-
struct EigenFromPy< Eigen::PlainObjectBase<MatType>, _Scalar > : EigenFromPy<MatType>
482+
template<typename MatType>
483+
struct EigenFromPy< Eigen::PlainObjectBase<MatType> > : EigenFromPy<MatType>
484484
{
485485
typedef EigenFromPy<MatType> EigenFromPyDerived;
486486
typedef Eigen::PlainObjectBase<MatType> Base;
@@ -495,8 +495,8 @@ namespace eigenpy
495495

496496
#if EIGEN_VERSION_AT_LEAST(3,2,0)
497497

498-
template<typename MatType, int Options, typename Stride, typename _Scalar>
499-
struct EigenFromPy<Eigen::Ref<MatType,Options,Stride>,_Scalar>
498+
template<typename MatType, int Options, typename Stride>
499+
struct EigenFromPy<Eigen::Ref<MatType,Options,Stride> >
500500
{
501501
typedef Eigen::Ref<MatType,Options,Stride> RefType;
502502
typedef typename MatType::Scalar Scalar;
@@ -520,8 +520,8 @@ namespace eigenpy
520520
}
521521
};
522522

523-
template<typename MatType, int Options, typename Stride, typename _Scalar>
524-
struct EigenFromPy<const Eigen::Ref<const MatType,Options,Stride>,_Scalar>
523+
template<typename MatType, int Options, typename Stride>
524+
struct EigenFromPy<const Eigen::Ref<const MatType,Options,Stride> >
525525
{
526526
typedef const Eigen::Ref<const MatType,Options,Stride> ConstRefType;
527527
typedef typename MatType::Scalar Scalar;

0 commit comments

Comments
 (0)