Added Ref<T>::instance()

This commit is contained in:
Marc Gilleron 2018-01-17 01:54:02 +01:00
parent 7dde412e26
commit 74e3b4ae23

View File

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