From 5af6524a1b69322e4e380c943c26900f8abbfb27 Mon Sep 17 00:00:00 2001
From: Justin Carpentier <justin.carpentier@inria.fr>
Date: Mon, 30 Jan 2023 18:26:16 +0100
Subject: [PATCH] core: add EIGENPY_CLASS_HOLDER_TYPE

---
 include/eigenpy/fwd.hpp | 8 ++++++++
 1 file changed, 8 insertions(+)

diff --git a/include/eigenpy/fwd.hpp b/include/eigenpy/fwd.hpp
index cb572bc4..44c74cd0 100644
--- a/include/eigenpy/fwd.hpp
+++ b/include/eigenpy/fwd.hpp
@@ -93,6 +93,14 @@
 
 #include "eigenpy/expose.hpp"
 
+#ifdef EIGENPY_WITH_CXX11_SUPPORT
+#include <memory>
+#define EIGENPY_CLASS_HOLDER_TYPE(T) ::std::shared_ptr<T>
+#else
+#include <boost/shared_ptr.hpp>
+#define EIGENPY_CLASS_HOLDER_TYPE(T) ::boost::shared_ptr<T>
+#endif
+
 namespace eigenpy {
 template <typename MatType,
           typename Scalar =
-- 
GitLab