]> granicus.if.org Git - gc/commit
Use noexcept specifier in gc_cpp if C++11
authorIvan Maidanski <ivmai@mail.ru>
Fri, 8 Jun 2018 08:34:23 +0000 (11:34 +0300)
committerIvan Maidanski <ivmai@mail.ru>
Fri, 8 Jun 2018 08:50:36 +0000 (11:50 +0300)
commit81b15cc40fc8cc257cb20cbfa5e389ce4665b3e1
treeb7a8f79fa571673cab798e85144cb7d5d77a72b8
parent4e909d2389d48f6393a35742b71a3e30c98157aa
Use noexcept specifier in gc_cpp if C++11

* gc_cpp.cc [!_MSC_VER && !__DMC__] (delete, delete[]): Rename
GC_DECL_DELETE_THROW to GC_NOEXCEPT.
* include/gc_cpp.h: Always include "new" header.
* include/gc_cpp.h [!GC_NEW_DELETE_THROW_NOT_NEEDED]
(GC_NEW_DELETE_NEED_THROW): Do not define if __BORLANDC__ or _MSC_VER,
or __WATCOMC__, or if __cplusplus>=201103L and !__clang__.
* include/gc_cpp.h (GC_DECL_DELETE_THROW): Remove.
* include/gc_cpp.h [!GC_NOEXCEPT] (GC_NOEXCEPT): Define internal macro
to except or throw(), or nothing (same as that in gc_allocator.h).
* include/gc_cpp.h [!GC_NEW_ABORTS_ON_OOM] (GC_NEW_ABORTS_ON_OOM):
Define if GC_NOEXCEPT is defined to nothing.
* include/gc_cpp.h (new(size_t,void*), new[](size_t,void*), delete):
Add GC_NOEXCEPT.
gc_cpp.cc
include/gc_cpp.h