17 Mar
2011
17 Mar
'11
7:11 p.m.
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