aboutsummaryrefslogtreecommitdiffstats
path: root/src/engine/machina
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2017-02-12 15:36:13 +0100
committerDavid Robillard <d@drobilla.net>2017-02-12 15:36:13 +0100
commitf249d6b60cb3268bb4f70468657f5eefef7add0f (patch)
treeb08ba2188a0c1163909ac68577cfaa3813d23242 /src/engine/machina
parenta9290108205c9763b6e613290c53132e912f3a95 (diff)
downloadmachina-f249d6b60cb3268bb4f70468657f5eefef7add0f.tar.gz
machina-f249d6b60cb3268bb4f70468657f5eefef7add0f.tar.bz2
machina-f249d6b60cb3268bb4f70468657f5eefef7add0f.zip
Update for latest Raul
Diffstat (limited to 'src/engine/machina')
-rw-r--r--src/engine/machina/Updates.hpp1
-rw-r--r--src/engine/machina/types.hpp6
2 files changed, 6 insertions, 1 deletions
diff --git a/src/engine/machina/Updates.hpp b/src/engine/machina/Updates.hpp
index 7c0391b..ff09af9 100644
--- a/src/engine/machina/Updates.hpp
+++ b/src/engine/machina/Updates.hpp
@@ -21,6 +21,7 @@
#include "machina/Atom.hpp"
#include "machina/types.hpp"
+#include "raul/RingBuffer.hpp"
namespace machina {
diff --git a/src/engine/machina/types.hpp b/src/engine/machina/types.hpp
index e9ac7d0..61137b7 100644
--- a/src/engine/machina/types.hpp
+++ b/src/engine/machina/types.hpp
@@ -20,7 +20,7 @@
#include <map>
#include <memory>
-#include "raul/RingBuffer.hpp"
+#include "raul/Maid.hpp"
namespace machina {
@@ -37,9 +37,13 @@ using SPtr = std::shared_ptr<T>;
template <class T>
using WPtr = std::weak_ptr<T>;
+
+template <class T>
+using MPtr = Raul::managed_ptr<T>;
#else
#define SPtr std::shared_ptr
#define WPtr std::weak_ptr
+#define MPtr Raul::managed_ptr
#endif
template <class T>