What do we catch?
Show answer and explanation
Catch exceptions by const reference to the appropriate base when handling a hierarchy, and order specific handlers before general ones. Catching by value can copy and slice; catch by non-const reference only when mutation is an intentional protocol.
Catch exceptions by const reference to the appropriate base when handling a hierarchy, and order specific handlers before general ones. Catching by value can copy and slice; catch by non-const reference only when mutation is an intentional protocol.
Connect the conclusion directly to the type, lifetime, ownership, overload-resolution rule, or library contract present in the question. State implementation dependence or a violated precondition explicitly instead of merely guessing output.