diff --git a/test/stateless_test.cpp b/test/stateless_test.cpp index aec9913..55a7f9c 100644 --- a/test/stateless_test.cpp +++ b/test/stateless_test.cpp @@ -21,13 +21,12 @@ struct stateless_integer_add { int operator()(int x, int y) const { return x+y; } - void* operator new(std::size_t, stateless_integer_add*) throw() + void* operator new(std::size_t, stateless_integer_add*) { throw std::runtime_error("Cannot allocate a stateless_integer_add"); - return 0; // suppress warnings } - void operator delete(void*, stateless_integer_add*) + void operator delete(void*, stateless_integer_add*) throw() { } };