Skip to content

Commit b19eac2

Browse files
committed
core: fix copy_if_non_const for const types
1 parent fb1b4ce commit b19eac2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

include/eigenpy/eigen-from-python.hpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ namespace eigenpy
1616
{
1717
namespace details
1818
{
19-
template<typename MatType, bool is_const = boost::is_const<MatType>::value >
19+
template<typename MatType, bool is_const = boost::is_const<MatType>::value>
2020
struct copy_if_non_const
2121
{
2222
static void run(const Eigen::MatrixBase<MatType> & input,
@@ -27,7 +27,7 @@ namespace eigenpy
2727
};
2828

2929
template<typename MatType>
30-
struct copy_if_non_const<MatType,true>
30+
struct copy_if_non_const<const MatType,true>
3131
{
3232
static void run(const Eigen::MatrixBase<MatType> & /*input*/,
3333
PyArrayObject * /*pyArray*/)

0 commit comments

Comments
 (0)