From c47bd24fd489b04ca521c8518f831ddc5d71d7c2 Mon Sep 17 00:00:00 2001
From: Florent Lamiraux <florent@laas.fr>
Date: Thu, 10 Jun 2021 07:28:17 +0000
Subject: [PATCH] Make switch to std::shared_ptr easier

---
 include/dynamic-graph/fwd.hh | 12 ++++++++++++
 1 file changed, 12 insertions(+)

diff --git a/include/dynamic-graph/fwd.hh b/include/dynamic-graph/fwd.hh
index b83e619..cfab3d9 100644
--- a/include/dynamic-graph/fwd.hh
+++ b/include/dynamic-graph/fwd.hh
@@ -5,7 +5,18 @@
 #ifndef DYNAMIC_GRAPH_FWD_HH
 #define DYNAMIC_GRAPH_FWD_HH
 
+#include <boost/smart_ptr.hpp>
+
 namespace dynamicgraph {
+
+// to be replace by std:: when we switch to C++11 and later
+using boost::shared_ptr;
+using boost::weak_ptr;
+using boost::static_pointer_cast;
+using boost::dynamic_pointer_cast;
+using boost::const_pointer_cast;
+using boost::make_shared;
+
 class DebugTrace;
 
 class PluginRefMap;
@@ -17,6 +28,7 @@ class ExceptionSignal;
 class ExceptionTraces;
 class FactoryStorage;
 class Interpreter;
+typedef shared_ptr<Interpreter> InterpreterShPtr_t;
 class InterpreterHelper;
 class Logger;
 class OutStringStream;
-- 
GitLab