Skip to content

Commit 5af6524

Browse files
committed
core: add EIGENPY_CLASS_HOLDER_TYPE
1 parent db587f0 commit 5af6524

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

include/eigenpy/fwd.hpp

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -93,6 +93,14 @@
9393

9494
#include "eigenpy/expose.hpp"
9595

96+
#ifdef EIGENPY_WITH_CXX11_SUPPORT
97+
#include <memory>
98+
#define EIGENPY_CLASS_HOLDER_TYPE(T) ::std::shared_ptr<T>
99+
#else
100+
#include <boost/shared_ptr.hpp>
101+
#define EIGENPY_CLASS_HOLDER_TYPE(T) ::boost::shared_ptr<T>
102+
#endif
103+
96104
namespace eigenpy {
97105
template <typename MatType,
98106
typename Scalar =

0 commit comments

Comments
 (0)