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
commit 4eea068b1b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

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