Re: [Boost-users] [boost] [review][constrained_value] Review of Constrained Value Library begins today

Sebastian Redl wrote:
I thought we were comparing plain assert with exception handling. I would count a smart assert closer to the latter.
Precisely. The fact that an invariant is broken does not mean everything else is broken too, and that all the damage cannot be fixed. If it cannot, of course aborting is the best choice. We're probably comparing apples and oranges here. Perhaps it is pointless to continue this thread on how broken invariants should be handled, it will most likely always depend on the details of the case. What matters is that the reviewed library should enable exceptions as an error mechanism, which I think we all agree on, and I do not see why it wouldn't be the most common use case and hence the default action, which we may not agree on. I can live with that. Kind regards, --> Mika Heiskanen
participants (1)
-
Mika Heiskanen