shared_ptr: Add missing conversion to bool.

git-svn-id: https://assimp.svn.sourceforge.net/svnroot/assimp/trunk@657 67173fc5-114c-0410-ac8e-9d2fd5bffc1f
pull/1/head
aramis_acg 2010-04-06 11:46:49 +00:00
parent 9a8de06e3a
commit b10315e2df
1 changed files with 4 additions and 0 deletions

View File

@ -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;