diff options
-rw-r--r-- | include/core/Ref.hpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/include/core/Ref.hpp b/include/core/Ref.hpp index 7e35641..345b455 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; |