|
Boost : |
From: David Abrahams (dave_at_[hidden])
Date: 2006-07-18 14:47:50
"Emil Dotchevski" <emildotchevski_at_[hidden]> 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
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk