|
Boost : |
From: Jeremy Day (jeremy.day_at_[hidden])
Date: 2006-07-18 13:56:28
On 7/18/06, Sohail Somani <s.somani_at_[hidden]> wrote:
>
> I just don't see the point, except as an academic exercise
The point is partly academic, as I am working on learning MPL. However, I
think that this technique, or some derivation thereof, can help make code
more maintainable, since you can reuse my_exception_handler whenever you
want to handle the same exception in the same way, even though you catch it
in a different place. With catch blocks the only recourse, so far as I can
tell, is to basically copy-and-paste the catch code to each location where
you need the exception handling code.
Jeremy
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk