[cfe-commits] r143965 - /cfe/trunk/lib/Sema/SemaPseudoObject.cpp

Matt Beaumont-Gay matthewbg at google.com
Mon Nov 7 10:33:26 PST 2011


Thanks, r143972.

On Mon, Nov 7, 2011 at 10:14, David Blaikie <dblaikie at gmail.com> wrote:
>> Appease -Wnon-virtual-dtor
>
>> +    virtual ~PseudoOpBuilder() {}
>> +
>
> It looks like the right thing to do is to make the dtor protected and
> non-virtual (this should still silence the warning), as no users
> actually try to destroy these objects polymorphically. (
> http://www.gotw.ca/publications/mill18.htm )
>
> - David
>




More information about the cfe-commits mailing list