[Dune-devel] [Dune-Commit] [Commit] dune-common - d26e5ed: [C++11] Follow the C++11 specification of operator new.
Carsten Gräser
graeser at mi.fu-berlin.de
Mon Dec 1 11:10:28 CET 2014
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
Am 28.11.2014 um 22:42 schrieb Christoph Grüninger:
> New commit, appeared at Fri Nov 28 22:42:28 2014 +0100
> as part of the following ref changes:
>
> branch refs/heads/master updated from 54d66e1 -> d26e5ed
>
> Browsable version: http://cgit.dune-project.org/repositories/dune-common/commit/?id=d26e5ed363f29223d47791958afcfe157559d895
>
> ======================================================================
>
> commit d26e5ed363f29223d47791958afcfe157559d895
> Author: Christoph Grüninger <gruenich at dune-project.org>
> Date: Fri Nov 28 22:42:01 2014 +0100
>
> [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 db5c0a4..16dcbf5 100644
> --- a/dune/common/debugallocator.hh
> +++ b/dune/common/debugallocator.hh
> @@ -294,7 +294,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);
>
> _______________________________________________
> Dune-Commit mailing list
> Dune-Commit at dune-project.org
> http://lists.dune-project.org/mailman/listinfo/dune-commit
>
--
Prof. Dr. Carsten Gräser
Freie Universität Berlin
Institut für Mathematik
Arnimallee 6
14195 Berlin, Germany
phone: +49 30 838 75399
fax : +49 30 838 54977
email: graeser at mi.fu-berlin.de
URL : http://page.mi.fu-berlin.de/graeser
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 473 bytes
Desc: OpenPGP digital signature
URL: <https://lists.dune-project.org/pipermail/dune-devel/attachments/20141201/4e498c93/attachment.sig>
More information about the Dune-devel
mailing list