mirror of
https://github.com/isocpp/CppCoreGuidelines.git
synced 2025-12-17 04:44:34 +03:00
Updated E.15
Straggler edit
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user