$include_dir="/home/hyper-archives/boost/include"; include("$include_dir/msg-header.inc") ?>
Subject: Re: [boost] [exception] warning about non-virtual destructor -resolution?
From: Peter Dimov (pdimov_at_[hidden])
Date: 2012-04-16 19:08:55
Emil Dotchevski wrote:
> The meaning of virtual is "this function is designed to be called through
> a
> base type pointer". This is simply not true for this code, it would be
> misleading and incorrect to use virtual in this case.
Yes but a protected destructor can't be called, and making it virtual gets
rid of the warning. Some battles are just not worth fighting.