shared_ptr: Add missing conversion to bool.
git-svn-id: https://assimp.svn.sourceforge.net/svnroot/assimp/trunk@657 67173fc5-114c-0410-ac8e-9d2fd5bffc1f
This commit is contained in:
@@ -127,6 +127,10 @@ public:
|
||||
return ptr;
|
||||
}
|
||||
|
||||
inline operator bool () const {
|
||||
return ptr != NULL;
|
||||
}
|
||||
|
||||
inline void reset (T* t = 0) {
|
||||
ctr = ctr->decref(ptr);
|
||||
ptr = t;
|
||||
|
||||
Reference in New Issue
Block a user