Verified Commit b19eac2f authored by Justin Carpentier's avatar Justin Carpentier
Browse files

core: fix copy_if_non_const for const types

parent fb1b4ce8
......@@ -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*/)
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment