From e74239d346368d9fbd389e33dad61b29a593e838 Mon Sep 17 00:00:00 2001 From: Giulio Romualdi Date: Tue, 13 Dec 2022 16:29:33 +0100 Subject: [PATCH] Enable std::shared_ptr holder only for python bindigs --- bindings/iDynTree.i | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/bindings/iDynTree.i b/bindings/iDynTree.i index c9f86e6e69..d520c9f567 100644 --- a/bindings/iDynTree.i +++ b/bindings/iDynTree.i @@ -6,7 +6,11 @@ %include "std_string.i" %include "std_vector.i" + +// std::shared_ptr holder is currently supported only for python bindings +#ifdef SWIGPYTHON %include "std_shared_ptr.i" +#endif // Wrap the std::vector params %template(StringVector) std::vector; @@ -301,7 +305,9 @@ namespace std { %include "iDynTree/InertialParametersSolidShapesHelpers.h" // High level interfaces +#ifdef SWIGPYTHON %shared_ptr(iDynTree::KinDynComputations) +#endif %include "iDynTree/KinDynComputations.h" #ifdef SWIGMATLAB