<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">On Mon, Apr 21, 2014 at 10:59 AM, David Blaikie <span dir="ltr"><<a href="mailto:dblaikie@gmail.com" target="_blank">dblaikie@gmail.com</a>></span> wrote:<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">

In 4.7 and above there's "-Wdelete-non-virtual-dtor" which is enabled<br>
by -Wall and warns at the delete which is more accurate.<br>
<br>
So long as we're dynamically allocating ArgLists, we'd either need to<br>
mark the concrete ArgLists as final (this correctly suppresses<br>
-Wdelete-non-virtual-dtor in GCC 4.7 and Clang)<br></blockquote><div><br></div><div>+1 for using -Wdelete-non-virtual-dtor and marking the concrete classes final.</div></div></div></div>