From b19eac2f77df625f6c3ac468f2b53aa0dd6f0d6f Mon Sep 17 00:00:00 2001 From: Justin Carpentier <justin.carpentier@inria.fr> Date: Tue, 25 Feb 2020 16:45:14 +0100 Subject: [PATCH] core: fix copy_if_non_const for const types --- include/eigenpy/eigen-from-python.hpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/eigenpy/eigen-from-python.hpp b/include/eigenpy/eigen-from-python.hpp index 3c4ea58..4551a98 100644 --- a/include/eigenpy/eigen-from-python.hpp +++ b/include/eigenpy/eigen-from-python.hpp @@ -16,7 +16,7 @@ namespace eigenpy { namespace details { - template<typename MatType, bool is_const = boost::is_const<MatType>::value > + template<typename MatType, bool is_const = boost::is_const<MatType>::value> struct copy_if_non_const { static void run(const Eigen::MatrixBase<MatType> & input, @@ -27,7 +27,7 @@ namespace eigenpy }; template<typename MatType> - struct copy_if_non_const<MatType,true> + struct copy_if_non_const<const MatType,true> { static void run(const Eigen::MatrixBase<MatType> & /*input*/, PyArrayObject * /*pyArray*/) -- GitLab