[PATCH 09/11] Add c++14 sized deallocation operator
Corinna Vinschen
corinna-cygwin@cygwin.com
Sun Mar 20 11:28:00 GMT 2016
On Mar 19 13:45, Peter Foley wrote:
> When compiling with -std=c++14 (the default for gcc 6.0+), the sized
> deallocation operator must be defined to prevent undefined symbols when
> linking.
>
> winsup/cygwin/ChangeLog:
> cxx.cc (operator delete(void *p, size_t)): Define.
>
> Signed-off-by: Peter Foley <pefoley2@pefoley.com>
> ---
> winsup/cygwin/cxx.cc | 5 +++++
> 1 file changed, 5 insertions(+)
>
> diff --git a/winsup/cygwin/cxx.cc b/winsup/cygwin/cxx.cc
> index 0faeaf7..df7491b 100644
> --- a/winsup/cygwin/cxx.cc
> +++ b/winsup/cygwin/cxx.cc
> @@ -29,6 +29,11 @@ operator delete (void *p)
> {
> free (p);
> }
> +void
> +operator delete (void *p, size_t)
> +{
> + ::operator delete(p);
> +}
>
> void *
> operator new[] (std::size_t s)
> --
> 2.7.4
This looks incomplete to me. Don't we have to export the symbol?
Thanks,
Corinna
--
Corinna Vinschen Please, send mails regarding Cygwin to
Cygwin Maintainer cygwin AT cygwin DOT com
Red Hat
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: not available
URL: <http://cygwin.com/pipermail/cygwin-patches/attachments/20160320/9314a6d5/attachment.sig>
More information about the Cygwin-patches
mailing list