From d55ea90545388d732304b17aaccbe78ecf784afe Mon Sep 17 00:00:00 2001
From: Mansard <nmansard@laas.fr>
Date: Wed, 22 Jun 2011 14:27:14 +0200
Subject: [PATCH] For compatibility, added a static function to bind the
 singleton.

---
 include/dynamic-graph/pool.h | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/include/dynamic-graph/pool.h b/include/dynamic-graph/pool.h
index 49536e95..6a9f11cc 100644
--- a/include/dynamic-graph/pool.h
+++ b/include/dynamic-graph/pool.h
@@ -134,6 +134,9 @@ namespace dynamicgraph
     PoolStorage () {}
     static PoolStorage* instance_;
   };
+
+  inline PoolStorage& g_pool() { return *PoolStorage::getInstance(); }
+
 }  // end of namespace dynamicgraph.
 
 #endif //! DYNAMIC_GRAPH_POOL_H
-- 
GitLab