]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - win/inspircd_memory_functions.cpp
Obsolete mods are in here :/
[user/henk/code/inspircd.git] / win / inspircd_memory_functions.cpp
index 691b1da6a6257528029eaa9f4809edb055878ec4..d487f69e3c03aada586bf067e9e733e87adae91a 100644 (file)
@@ -1,6 +1,8 @@
 // Use the global heap for this process for all allocate/free operations.\r
 #include "inspircd_win32wrapper.h"\r
 #include <exception>\r
+#include <new>\r
+#include <new.h>\r
 \r
 void * ::operator new(size_t iSize)\r
 {\r
@@ -8,7 +10,7 @@ void * ::operator new(size_t iSize)
        /* This is the correct behaviour according to C++ standards for out of memory,\r
         * not returning null -- Brain*/\r
        if (!ptr)\r
-               throw std::bad_alloc;\r
+               throw std::bad_alloc();\r
        else\r
                return ptr;\r
 }\r