diff options
author | Adam <Adam@anope.org> | 2011-04-08 03:48:43 -0400 |
---|---|---|
committer | Adam <Adam@anope.org> | 2011-04-10 17:54:20 -0400 |
commit | b56565eac2d7207c88c53054cb1096519ec7fba9 (patch) | |
tree | cd0f10a47dd002157553d96e2ef91ea5d620eadc /include/base.h | |
parent | f8588b112fe6ef1095e40fcd64f85e670d96bc92 (diff) |
Fixed Windows build on VS 2010
Diffstat (limited to 'include/base.h')
-rw-r--r-- | include/base.h | 5 |
1 files changed, 4 insertions, 1 deletions
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 <typename T> -class reference +class CoreExport reference { T* value; public: @@ -141,8 +141,10 @@ class 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 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: |