|
Boost : |
From: Emil Dotchevski (emildotchevski_at_[hidden])
Date: 2006-07-04 15:11:22
Bronek,
As far as typos and the exception lib are concerned, the tag types have no
advantage over strings. In fact they are exactly the same. If you use tag
types, you can avoid typos by declaring the tag type in a header file that's
included both by the code that throws, and the code that catches. If you use
strings, you can do the same thing.
Ultimately I think it is better to declare the tag types directly with the
code that needs them, and by doing this you're exposing yourself to typos.
--Emil
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk