From b1198f0842e6e4d6b1c01f07d91b42ef4a212788 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Sun, 12 Feb 2017 15:04:20 +0100 Subject: Use smart pointers to handle real-time memory disposal --- ingen/types.hpp | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'ingen') diff --git a/ingen/types.hpp b/ingen/types.hpp index e6cbc3b5..d1055e22 100644 --- a/ingen/types.hpp +++ b/ingen/types.hpp @@ -19,6 +19,8 @@ #include +#include "raul/Maid.hpp" + namespace Ingen { #if __cplusplus >= 201103L @@ -27,9 +29,13 @@ using SPtr = std::shared_ptr; template using WPtr = std::weak_ptr; + +template +using MPtr = Raul::managed_ptr; #else #define SPtr std::shared_ptr #define WPtr std::weak_ptr +#define MPtr Raul::managed_ptr #endif template -- cgit v1.2.1