Boost logo

Boost :

From: Sohail Somani (s.somani_at_[hidden])
Date: 2006-07-18 15:13:25

> -----Original Message-----
> From: boost-bounces_at_[hidden]
> [mailto:boost-bounces_at_[hidden]] On Behalf Of Jeremy Day
> Sent: Tuesday, July 18, 2006 10:56 AM
> To: boost_at_[hidden]
> Subject: Re: [boost] Exception Visitor
> 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.

This is true. Though I personally tend to use macros for this specific

Boost list run by bdawes at, gregod at, cpdaniel at, john at