]> granicus.if.org Git - gc/commit
Fix global operator delete definition for C++14 in gc_cpp
authorIvan Maidanski <ivmai@mail.ru>
Mon, 15 Jan 2018 05:20:02 +0000 (08:20 +0300)
committerIvan Maidanski <ivmai@mail.ru>
Tue, 16 Jan 2018 21:36:41 +0000 (00:36 +0300)
commitede8f8c8ce916f57a35fb8f39cb46914649825c0
tree94cbe67053c08de1447573041df1750524c5015c
parentd18f7660ea3a79e37ad7c36d126b8fc987516209
Fix global operator delete definition for C++14 in gc_cpp

Issue #195 (bdwgc).

Sized variants of global operator delete should be defined along with
the non-sized ones.  Otherwise compiler might invoke the one from the
standard library (as observed in e.g. Cygwin) leading to a crash.

* gc_cpp.cc [!_MSC_VER && __cplusplus>201103L] (operator delete):
Define sized variant (the size argument is ignored for now).
* gc_cpp.cc [!_MSC_VER && __cplusplus>201103L && GC_OPERATOR_NEW_ARRAY
&& !CPPCHECK] (operator delete[]): Likewise.
gc_cpp.cc