shared_ptr: Add missing conversion to bool.
git-svn-id: https://assimp.svn.sourceforge.net/svnroot/assimp/trunk@657 67173fc5-114c-0410-ac8e-9d2fd5bffc1fpull/1/head
parent
9a8de06e3a
commit
b10315e2df
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue