From b56565eac2d7207c88c53054cb1096519ec7fba9 Mon Sep 17 00:00:00 2001 From: Adam Date: Fri, 8 Apr 2011 03:48:43 -0400 Subject: Fixed Windows build on VS 2010 --- include/base.h | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'include/base.h') diff --git a/include/base.h b/include/base.h index 7926779eb..385907887 100644 --- a/include/base.h +++ b/include/base.h @@ -112,7 +112,7 @@ class CoreExport usecountbase }; template -class reference +class CoreExport reference { T* value; public: @@ -141,8 +141,10 @@ class reference inline bool operator>(const reference& other) const { return value > other.value; } static inline void* operator new(size_t, void* m) { return m; } private: +#ifndef WIN32 static void* operator new(size_t); static void operator delete(void*); +#endif }; /** This class can be used on its own to represent an exception, or derived to represent a module-specific exception. @@ -189,6 +191,7 @@ class CoreExport CoreException : public std::exception } }; +class Module; class CoreExport ModuleException : public CoreException { public: -- cgit v1.2.3