|
Boost : |
From: Alan Bellingham (alan_at_[hidden])
Date: 2002-08-14 11:10:34
hys:
>Hmm. Interesting. (Why does std::exception provide a virtual dtor if it's
>not really necessary?)
You may not want a container of polymorphic pointers to exceptions, but
you still want to catch exceptions polymorphically (else why bother
having an exception hierarchy at all?).
Since std::exception already has a virtual function (what()), there's no
per-instance space overhead in having a virtual dtor as well.
Alan
-- Alan Bellingham
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk