Skip to content
Snippets Groups Projects
Verified Commit b19eac2f authored by Justin Carpentier's avatar Justin Carpentier
Browse files

core: fix copy_if_non_const for const types

parent fb1b4ce8
No related branches found
No related tags found
No related merge requests found
...@@ -16,7 +16,7 @@ namespace eigenpy ...@@ -16,7 +16,7 @@ namespace eigenpy
{ {
namespace details 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 struct copy_if_non_const
{ {
static void run(const Eigen::MatrixBase<MatType> & input, static void run(const Eigen::MatrixBase<MatType> & input,
...@@ -27,7 +27,7 @@ namespace eigenpy ...@@ -27,7 +27,7 @@ namespace eigenpy
}; };
template<typename MatType> 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*/, static void run(const Eigen::MatrixBase<MatType> & /*input*/,
PyArrayObject * /*pyArray*/) PyArrayObject * /*pyArray*/)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment