[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [groff] Help needed: C++11 language lawyer
From: |
G. Branden Robinson |
Subject: |
Re: [groff] Help needed: C++11 language lawyer |
Date: |
Sun, 12 Nov 2017 12:50:44 -0500 |
User-agent: |
NeoMutt/20170113 (1.7.2) |
At 2017-11-12T17:21:43+0000, Ralph Corderoy wrote:
> Hi Branden,
>
> > I have a patch that quiets the sized-deallocation warning, but the
> > most obvious solution (to me) causes a different warning.
>
> That I don't think you give?
> Can't the new delete call the existing one to do the work?
I inlined the new warning in the diff hunk I posted, and it is in fact
the precise result of what you advise. :-O
+ // In function 'void operator delete(void*, long unsigned int)':
+ // warning: deleting 'void*' is undefined [-Wdelete-incomplete]
+ //delete p;
--
Regards,
Branden
signature.asc
Description: PGP signature