(ObjectRef) Added implicit conversion constructor/operator

Former-commit-id: c633956130731e84c6d15d09961cd80c8d24877a
This commit is contained in:
Lynix
2015-01-28 15:46:14 +01:00
parent 9195e162a8
commit c2d1773b41
2 changed files with 18 additions and 0 deletions

View File

@@ -20,6 +20,7 @@ class NzObjectRef
NzObjectRef();
NzObjectRef(T* object);
NzObjectRef(const NzObjectRef& ref);
template<typename U> NzObjectRef(const NzObjectRef<U>& ref);
NzObjectRef(NzObjectRef&& ref) noexcept;
~NzObjectRef();
@@ -35,6 +36,7 @@ class NzObjectRef
NzObjectRef& operator=(T* object);
NzObjectRef& operator=(const NzObjectRef& ref);
template<typename U> NzObjectRef& operator=(const NzObjectRef<U>& ref);
NzObjectRef& operator=(NzObjectRef&& ref) noexcept;
private: