From 23350fd99f3f4ec021ef33d3d21a706a5e48656d Mon Sep 17 00:00:00 2001 From: Herb Sutter Date: Thu, 4 Nov 2021 11:47:28 -0700 Subject: [PATCH] Updated E.15 Straggler edit --- CppCoreGuidelines.md | 1 + 1 file changed, 1 insertion(+) diff --git a/CppCoreGuidelines.md b/CppCoreGuidelines.md index 2e010b0..7d12c18 100644 --- a/CppCoreGuidelines.md +++ b/CppCoreGuidelines.md @@ -16080,6 +16080,7 @@ Catch `throw` and `catch` of a built-in type. Maybe warn about `throw` and `catc ##### Reason +Throwing by value (not by pointer) and catching by reference prevents copying, especially slicing base subobjects. ##### Example; bad