diff options
Diffstat (limited to 'include/base.h')
-rw-r--r-- | include/base.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/include/base.h b/include/base.h index 230ed1db4..3e868ff22 100644 --- a/include/base.h +++ b/include/base.h @@ -157,7 +157,7 @@ class CoreExport reference return *this; } - inline operator bool() const { return value; } + inline operator bool() const { return (value != NULL); } inline operator T*() const { return value; } inline T* operator->() const { return value; } inline T& operator*() const { return *value; } @@ -165,7 +165,7 @@ class CoreExport reference inline bool operator>(const reference<T>& other) const { return value > other.value; } static inline void* operator new(size_t, void* m) { return m; } private: -#ifndef WIN32 +#ifndef _WIN32 static void* operator new(size_t); static void operator delete(void*); #endif |