
"Brock Peabody" <brock.peabody@npcinternational.com> writes:
On Behalf Of David Abrahams
And what about the one Daniel Wallin posted, which doesn't require all exceptions to be registered in one big compile-time list?
I'd rather be able to put them all in a list than to have to manually register each one.
?? it seems equivalent to me.
However, given a runtime registration mechanism I guess it shouldn't be too difficult to implement a compile to interface on top and it would probably compile faster than a version implemented completely at compile time.
Yup. More importantly, it works even if different libraries register separate translators for exceptions in the same class hierarchy, without regard to registration order. -- Dave Abrahams Boost Consulting www.boost-consulting.com