Added Ref<T>::instance()
parent
7dde412e26
commit
74e3b4ae23
|
@ -162,6 +162,11 @@ public:
|
||||||
reference = nullptr;
|
reference = nullptr;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void instance()
|
||||||
|
{
|
||||||
|
ref(new T);
|
||||||
|
}
|
||||||
|
|
||||||
Ref()
|
Ref()
|
||||||
{
|
{
|
||||||
reference = nullptr;
|
reference = nullptr;
|
||||||
|
|
Loading…
Reference in New Issue