|
Boost : |
From: Jeremy Day (jeremy.day_at_[hidden])
Date: 2006-08-08 18:25:48
Pavel,
On 8/8/06, Pavel Vozenilek <pavel_vozenilek_at_[hidden]> wrote:
> Now the visitor will have a typelist
> of exceptions it does handle and will
> internally generate a chain
> of dynamic_casts to select the most
> appropriate visit() function to be called.
Have a look at catcher.zip in
http://www.boost-consulting.com/vault/index.php?&direction=0&order=&directory=Patterns.
That is basically exactly what you are describing. Also, search the
developer list for "exception visitor" and you should find a discussion that
we are currently having about that code.
If you have any questions about the code feel free to e-mail me directly.
Jeremy
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk