From 9ead38c9110b0fbe14c07d43ac4c2ff4ed81028d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Christoph=20Gr=C3=BCninger?= <gruenich@dune-project.org> Date: Wed, 30 Sep 2015 09:37:32 +0200 Subject: [PATCH] Revert "Revert "[C++11] Follow the C++11 specification of operator new."" This reverts commit 4441ec265c40e3cc38ba92df2206e096a3e44c4f. The minimal required is finally GCC 4.7 or newer (it is actuall 4.9). Original commit message for d26e5ed363f29223d47791958afcfe157559d895 was [C++11] Follow the C++11 specification of operator new. The signature changed in C++11 which we require now. To get more details see the mailinglost in October 2012. --- dune/common/debugallocator.hh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dune/common/debugallocator.hh b/dune/common/debugallocator.hh index a030f92ae..677fb8bd8 100644 --- a/dune/common/debugallocator.hh +++ b/dune/common/debugallocator.hh @@ -295,7 +295,7 @@ namespace Dune } #ifdef DEBUG_NEW_DELETE -void * operator new(size_t size) throw(std::bad_alloc) +void * operator new(size_t size) { // try to allocate size bytes void *p = Dune::DebugMemory::alloc_man.allocate<char>(size); -- GitLab