diff --git a/moo/moocpp/utils.h b/moo/moocpp/utils.h index a4899e2e..0f2c59ef 100644 --- a/moo/moocpp/utils.h +++ b/moo/moocpp/utils.h @@ -104,6 +104,12 @@ std::unique_ptr make_unique(Args&&... args) return std::unique_ptr (new T (std::forward (args)...)); } +template +std::shared_ptr make_shared (Args&&... args) +{ + return std::shared_ptr (new T (std::forward (args)...)); +} + class raii { public: