E section, different stuff (#1480)

- E.15: "of" -> "or"
- E.27: capitalization
This commit is contained in:
beinhaerter
2019-08-01 20:22:26 +02:00
committed by Herb Sutter
parent b80ac8bc60
commit 796ce80102

View File

@@ -15644,7 +15644,7 @@ Instead, use a reference:
catch (exception& e) { /* ... */ }
of - typically better still - a `const` reference:
or - typically better still - a `const` reference:
catch (const exception& e) { /* ... */ }
@@ -15917,8 +15917,8 @@ Systematic use of any error-handling strategy minimizes the chance of forgetting
There are several issues to be addressed:
* how do you transmit an error indicator from out of a function?
* how do you release all resources from a function before doing an error exit?
* How do you transmit an error indicator from out of a function?
* How do you release all resources from a function before doing an error exit?
* What do you use as an error indicator?
In general, returning an error indicator implies returning two values: The result and an error indicator.