Skip to content

Commit bd7085e

Browse files
authored
Change [C++CS] refs to [SuttAlex05] Issue #1660 (#1662)
1 parent 2449d5d commit bd7085e

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

CppCoreGuidelines.md

+3-5
Original file line numberDiff line numberDiff line change
@@ -21967,7 +21967,7 @@ In this rare case, you could make the destructor public and non-virtual but clea
2196721967

2196821968
In general, however, avoid concrete base classes (see Item 35). For example, `unary_function` is a bundle-of-typedefs that was never intended to be instantiated standalone. It really makes no sense to give it a public destructor; a better design would be to follow this Item's advice and give it a protected non-virtual destructor.
2196921969

21970-
**References**: [\[C++CS\]](#CplusplusCS) Item 50, [\[Cargill92\]](#Cargill92) pp. 77-79, 207, [\[Cline99\]](#Cline99) §21.06, 21.12-13, [\[Henricson97\]](#Henricson97) pp. 110-114, [\[Koenig97\]](#Koenig97) Chapters 4, 11, [\[Meyers97\]](#Meyers97) §14, [\[Stroustrup00\]](#Stroustrup00) §12.4.2, [\[Sutter02\]](#Sutter02) §27, [\[Sutter04\]](#Sutter04) §18
21970+
**References**: [\[SuttAlex05\]](#SuttAlex05) Item 50, [\[Cargill92\]](#Cargill92) pp. 77-79, 207, [\[Cline99\]](#Cline99) §21.06, 21.12-13, [\[Henricson97\]](#Henricson97) pp. 110-114, [\[Koenig97\]](#Koenig97) Chapters 4, 11, [\[Meyers97\]](#Meyers97) §14, [\[Stroustrup00\]](#Stroustrup00) §12.4.2, [\[Sutter02\]](#Sutter02) §27, [\[Sutter04\]](#Sutter04) §18
2197121971

2197221972
### <a name="Sd-noexcept"></a>Discussion: Usage of noexcept
2197321973

@@ -22061,7 +22061,7 @@ Fortunately, when releasing a resource, the scope for failure is definitely smal
2206122061

2206222062
When using exceptions as your error handling mechanism, always document this behavior by declaring these functions `noexcept`. (See Item 75.)
2206322063

22064-
**References**: [\[C++CS\]](#CplusplusCS) Item 51; [\[C++03\]](#Cplusplus03) §15.2(3), §17.4.4.8(3), [\[Meyers96\]](#Meyers96) §11, [\[Stroustrup00\]](#Stroustrup00) §14.4.7, §E.2-4, [\[Sutter00\]](#Sutter00) §8, §16, [\[Sutter02\]](#Sutter02) §18-19
22064+
**References**: [\[SuttAlex05\]](#SuttAlex05) Item 51; [\[C++03\]](#Cplusplus03) §15.2(3), §17.4.4.8(3), [\[Meyers96\]](#Meyers96) §11, [\[Stroustrup00\]](#Stroustrup00) §14.4.7, §E.2-4, [\[Sutter00\]](#Sutter00) §8, §16, [\[Sutter02\]](#Sutter02) §18-19
2206522065

2206622066
## <a name="Sd-consistent"></a>Define Copy, move, and destroy consistently
2206722067

@@ -22148,7 +22148,7 @@ Prefer compiler-generated (including `=default`) special members; only these can
2214822148
In rare cases, classes that have members of strange types (such as reference members) are an exception because they have peculiar copy semantics.
2214922149
In a class holding a reference, you likely need to write the copy constructor and the assignment operator, but the default destructor already does the right thing. (Note that using a reference member is almost always wrong.)
2215022150

22151-
**References**: [\[C++CS\]](#CplusplusCS) Item 52; [\[Cline99\]](#Cline99) §30.01-14, [\[Koenig97\]](#Koenig97) §4, [\[Stroustrup00\]](#Stroustrup00) §5.5, §10.4, [\[SuttHysl04b\]](#SuttHysl04b)
22151+
**References**: [\[SuttAlex05\]](#SuttAlex05) Item 52; [\[Cline99\]](#Cline99) §30.01-14, [\[Koenig97\]](#Koenig97) §4, [\[Stroustrup00\]](#Stroustrup00) §5.5, §10.4, [\[SuttHysl04b\]](#SuttHysl04b)
2215222152

2215322153
Resource management rule summary:
2215422154

@@ -22585,8 +22585,6 @@ Alternatively, we will decide that no change is needed and delete the entry.
2258522585
\[Alexandrescu01]: A. Alexandrescu. Modern C++ Design (Addison-Wesley, 2001).
2258622586
* <a name="Cplusplus03"></a>
2258722587
\[C++03]: ISO/IEC 14882:2003(E), Programming Languages — C++ (updated ISO and ANSI C++ Standard including the contents of (C++98) plus errata corrections).
22588-
* <a name="CplusplusCS"></a>
22589-
\[C++CS]: ???
2259022588
* <a name="Cargill92"></a>
2259122589
\[Cargill92]: T. Cargill. C++ Programming Style (Addison-Wesley, 1992).
2259222590
* <a name="Cline99"></a>

0 commit comments

Comments
 (0)