Boost logo

Boost Users :

Subject: Re: [Boost-users] boost::exception_detail::error_info_base does not have virtual destructor
From: Steven Watanabe (watanabesj_at_[hidden])
Date: 2011-03-17 15:11:05


AMDG

On 03/17/2011 10:32 AM, Jens Auer wrote:
> Well, that's true for exception_detail, but error_info has a public non-virtual destructor and might be used as a base class (I am sure it isn't, but when I just have a quick look at it when coding it doesn't say that it shouldn't).

The virtual functions are undocumented
implementation details. You're flipping
the usual rule here. A class should never
be used as a base class unless it explicitly
intended to be one and is documented
as such.

In Christ,
Steven Watanabe


Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net