16 Oct
2019
16 Oct
'19
5:38 p.m.
On Wed, Oct 16, 2019 at 12:01 AM Alexander Grund via Boost < boost@lists.boost.org> wrote:
Am 15.10.19 um 22:45 schrieb Emil Dotchevski via Boost:
The warning is not correct, and making the destructor virtual is wrong, because by design it is a bug to delete the base pointer type. I just disabled the warning for MSVC.
The warning is "Virtual class has non-virtual destructor so deleting it through a base class will lead to bugs", which is correct, isn't it?
The destructor is not virtual by design, not by mistake. The code is correct as written, so the warning is to be silenced.