From 4a73bc96c5470404bbd08c938861f7698a3f0b7b Mon Sep 17 00:00:00 2001 From: Tom Prince Date: Wed, 26 May 2010 11:58:19 -0400 Subject: [PATCH] msvc6: More fixes. --- gemrb/core/Holder.h | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/gemrb/core/Holder.h b/gemrb/core/Holder.h index 912560cda..789635fd2 100644 --- a/gemrb/core/Holder.h +++ b/gemrb/core/Holder.h @@ -77,7 +77,12 @@ public: T* operator->() const { return ptr; } bool operator!() const { return !ptr; } // Copied from boost/smart_ptr/detail/operator_bool.hpp +#ifndef _MSC_VER operator T* Holder::*() const { return ptr == NULL ? NULL : &Holder::ptr; } +#else // MSVC6 + // FIXME: Figure out what version doesn't need this hack. + operator bool() const { return ptr != NULL; } +#endif T* get() const { return ptr; } void release() { if (ptr) -- 2.11.4.GIT