diff --git a/include/core/Ref.hpp b/include/core/Ref.hpp index 7e35641a..345b4556 100644 --- a/include/core/Ref.hpp +++ b/include/core/Ref.hpp @@ -162,6 +162,11 @@ public: reference = nullptr; } + void instance() + { + ref(new T); + } + Ref() { reference = nullptr;