[Dune-devel] [Dune-Commit] [Commit] dune-common - d26e5ed: [C++11] Follow the C++11 specification of operator new.

Christoph Grüninger christoph.grueninger at iws.uni-stuttgart.de
Mon Dec 1 11:40:14 CET 2014

Hi Carsten,
thanks for the hint. I was not aware that it needs GCC 4.7 for that
declaration. I'll revert the commit until GCC 4.7 is our minimal


Am 01.12.2014 um 11:10 schrieb Carsten Gräser:
> Hi Christoph,
> after pulling this patch I get the following error
> with gcc 4.4 and 4.6 (gcc >=4.7 works):
>   /home/graeser/dune_testing/dune-common/dune/common/debugallocator.hh:   In function ‘void* operator new(size_t)’:
>   /home/graeser/dune_testing/dune-common/dune/common/debugallocator.hh:297:32: error: declaration of ‘void* operator new(size_t)’ has a different exception specifier
>   /usr/include/c++/4.6/new:93:7: error: from previous declaration ‘void* operator new(std::size_t) throw (std::bad_alloc)’
> Best,
> Carsten

GDB does hate your application, expresses its contempt through the
design of its command-line interface.   -- Tom Tromey, FOSDEM 2014

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 836 bytes
Desc: OpenPGP digital signature
URL: <https://lists.dune-project.org/pipermail/dune-devel/attachments/20141201/933c19fb/attachment.pgp>

More information about the Dune-devel mailing list