Boost logo

Boost :

From: Dave Gomboc (dave_at_[hidden])
Date: 2003-03-23 05:51:42


>>>Yes. Since type_info objects can't be copied, one might instead store
>>>pointers or references to them.
>>
>> Pointers would be better because, for better or for worse (mostly for
>> worse), standard exceptions support assignment as part of their
>> interface.
>
>Why should boost exception classes behave like std:: exception
>classes in this regard?

Since you advocate elsewhere that exception classes be derived from
std::exception, the answer is because otherwise LSP would be violated.

Dave


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