Marc Gilleron пре 7 година
родитељ
комит
74e3b4ae23
1 измењених фајлова са 5 додато и 0 уклоњено
  1. 5 0
      include/core/Ref.hpp

+ 5 - 0
include/core/Ref.hpp

@@ -162,6 +162,11 @@ public:
 		reference = nullptr;
 	}
 	
+	void instance()
+	{
+		ref(new T);
+	}
+
 	Ref()
 	{
 		reference = nullptr;