Added Ref<T>::instance()

pull/68/head
Marc Gilleron 2018-01-17 01:54:02 +01:00
parent 7dde412e26
commit 74e3b4ae23
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;