
18 Jul
2006
18 Jul
'06
6:47 p.m.
"Emil Dotchevski" <emildotchevski@hotmail.com> writes:
You seem to be replacing the sequence of catch-es (which is order-specific), with overloading (which isn't). The order is important, because in a way each catch is a more generic fallback for the previous ones.
Personally I would prefer it if handlers automatically got the same order as would be provided by overload resolution. It's almost always a mistake to write catch(Base&) { ... } catch(Derived&) { ... } -- Dave Abrahams Boost Consulting www.boost-consulting.com