commit | c0dd70d88477f3b500258a4b0171ae196ece3bb2 | [log] [tgz] |
---|---|---|
author | Patrick Williams <patrick@stwcx.xyz> | Fri Sep 03 08:33:48 2021 -0500 |
committer | Patrick Williams <patrick@stwcx.xyz> | Fri Sep 03 08:34:09 2021 -0500 |
tree | 9335c5dfaf7652e1770a759ede28c245383754af | |
parent | 8fe0abe6d9f69f735e93d7055687fce4b56e80bf [diff] |
exception: catch by reference `catch` should always be done by reference to avoid object slicing and excess copy-constructor calls. Preference is for exceptions to also be caught 'const'. (Both of these come from the C++ Core Guidelines) Signed-off-by: Patrick Williams <patrick@stwcx.xyz> Change-Id: Ic8cd1e138220e501699525e9c8d53cd581e2598c