Merge pull request #68 from Zylann/ref_instance

Added Ref<T>::instance()
pull/71/head
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
1 changed files with 5 additions and 0 deletions

View File

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