Merge pull request #68 from Zylann/ref_instance

Added Ref<T>::instance()
This commit is contained in:
Thomas Herzog
2018-01-17 08:44:24 +01:00
committed by GitHub

View File

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