]> granicus.if.org Git - gc/commit
Use noexcept in gc_allocator
authorIvan Maidanski <ivmai@mail.ru>
Thu, 7 Jun 2018 08:39:27 +0000 (11:39 +0300)
committerIvan Maidanski <ivmai@mail.ru>
Thu, 7 Jun 2018 08:40:36 +0000 (11:40 +0300)
commit48e8a7f9988564c70a65ad53581dae0657b1c128
treecc4ac276a954c92aed498604116fdcc7676352e0
parentc89559ba82563f00de01f5fb5573320ef2eb80ec
Use noexcept in gc_allocator

* include/gc_allocator.h [!GC_NOEXCEPT] (GC_NOEXCEPT): Define internal
macro (to noexcept if C++11, otherwise to throw() or nothing); define
GC_NEW_ABORTS_ON_OOM if GC_NOEXCEPT is defined to nothing.
* include/gc_allocator.h (gc_allocator(), deallocate, operator==,
operator!=, gc_allocator_ignore_off_page()): Add GC_NOEXCEPT.
* include/gc_allocator.h (gc_allocator, gc_allocator_ignore_off_page,
traceable_allocator): Replace throw() to GC_NOEXCEPT.
* include/gc_allocator.h (deallocate): Remove outdated comment that
p should be non-null.
include/gc_allocator.h