Issue 122768 - Catch C++ exceptions by const reference
Summary: Catch C++ exceptions by const reference
Status: CONFIRMED
Alias: None
Product: General
Classification: Code
Component: code (show other issues)
Version: 3.4.1
Hardware: All All
: P3 Normal (vote)
Target Milestone: ---
Assignee: AOO issues mailing list
QA Contact:
URL:
Keywords:
Depends on:
Blocks: 122766 125105
  Show dependency tree
 
Reported: 2013-07-17 08:56 UTC by hdu@apache.org
Modified: 2014-06-16 12:59 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Latest Confirmation in: ---
Developer Difficulty: ---


Attachments

Note You need to log in before you can comment on or make changes to this issue.
Description hdu@apache.org 2013-07-17 08:56:00 UTC
Catching C++ exceptions by const reference is considered best practice as it avoids "slicing" of derived exceptions. It also avoids unnecessary copy construction of the exception object.