Boost logo

Boost :

From: Alan Bellingham (alan_at_[hidden])
Date: 2002-09-23 04:18:06


Victor:

>it IS a shame that the committee saw fit to only include a what() method in
>the standard exceptions... a single int in addition would have made a lot
>of things easier, IMO.

Perhaps. However, the general intent was to produce the lightest, most
efficient objects possible. If the only data in an exception is a vtable
pointer, then the exception object will typically be half the size of
one that gratuitously includes an int as well. It's a trivial task to
add an int to a derived type - impossible to remove one.

Or did you mean that a virtual which()/why() method would have been
useful?


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk