correcting error when compiling with clang
authorebensza <bence.janos.szabo@ericsson.com>
Thu, 28 Apr 2016 08:18:15 +0000 (10:18 +0200)
committerebensza <bence.janos.szabo@ericsson.com>
Thu, 28 Apr 2016 08:18:15 +0000 (10:18 +0200)
Signed-off-by: ebensza <bence.janos.szabo@ericsson.com>
common/new.cc

index ed12449cd6fa26da326554519d594cf550e93524..1b1c43a2d25fc7a474d972451535442fb16bb2d1 100644 (file)
  ******************************************************************************/
 #include "dbgnew.hh"
 #include <stddef.h>
+#include <new>
 
 #undef new
 
 static void *dummy = NULL;
 
-void *operator new(size_t size) throw ()
+void *operator new(size_t size) throw (std::bad_alloc)
 {
     return Malloc(size);
 }
 
-void *operator new[](size_t size) throw ()
+void *operator new[](size_t size) throw (std::bad_alloc)
 {
     if (size == 0) return &dummy;
     else return Malloc(size);
This page took 0.026511 seconds and 5 git commands to generate.