From 76affeaf9ad89265714834145b9582a0712bdf38 Mon Sep 17 00:00:00 2001 From: Justin Carpentier <justin.carpentier@inria.fr> Date: Tue, 10 Dec 2019 22:07:59 +0100 Subject: [PATCH] core: fix possible memory leak --- include/eigenpy/details.hpp | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/include/eigenpy/details.hpp b/include/eigenpy/details.hpp index 827b2f22..6d437ed0 100644 --- a/include/eigenpy/details.hpp +++ b/include/eigenpy/details.hpp @@ -16,6 +16,17 @@ #include "eigenpy/registration.hpp" #include "eigenpy/map.hpp" +namespace boost { namespace python { namespace detail { + + template<class MatType> + struct referent_size<Eigen::MatrixBase<MatType>&> + { + BOOST_STATIC_CONSTANT( + std::size_t, value = sizeof(MatType)); + }; + +}}} + namespace boost { namespace python { namespace converter { template<class MatType> -- GitLab