aboutsummaryrefslogtreecommitdiffstats
path: root/src/engine/machina
diff options
context:
space:
mode:
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>