From b10315e2df0003da80b96736f1ddf5d72d485b10 Mon Sep 17 00:00:00 2001 From: aramis_acg Date: Tue, 6 Apr 2010 11:46:49 +0000 Subject: [PATCH] shared_ptr: Add missing conversion to bool. git-svn-id: https://assimp.svn.sourceforge.net/svnroot/assimp/trunk@657 67173fc5-114c-0410-ac8e-9d2fd5bffc1f --- code/BoostWorkaround/boost/shared_ptr.hpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/code/BoostWorkaround/boost/shared_ptr.hpp b/code/BoostWorkaround/boost/shared_ptr.hpp index 8c816d751..986c88404 100644 --- a/code/BoostWorkaround/boost/shared_ptr.hpp +++ b/code/BoostWorkaround/boost/shared_ptr.hpp @@ -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;