diff options
-rw-r--r-- | raul/Maid.hpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/raul/Maid.hpp b/raul/Maid.hpp index 29b6473..1bd40a5 100644 --- a/raul/Maid.hpp +++ b/raul/Maid.hpp @@ -116,7 +116,7 @@ public: /** Make a unique_ptr that will dispose its object when dropped. */ template<class T, class... Args> managed_ptr<T> make_managed(Args&&... args) { - T* obj = new T(args...); + T* obj = new T(std::forward<Args>(args)...); return std::unique_ptr<T, Disposer<T> >(obj, Disposer<T>(*this)); } |