Appendix B. Item ing between the second and third editions
By Scott Meyers
Translator: fatalerror99 (itepub's nirvana)
Release: http://blog.csdn.net/fatalerror99/
Valid C ++The third version is different from the second version in many ways. The most striking thing is that it contains a lot of new information. However, most of the content in the second version is retained in the third version, although it often changes the form and position. In the tables on the following pages, I show where the information in the second items can be found in the third edition, and vice versa.
This table shows a ing of information instead of text. For example, the idea in item 39 of the second edition ("Avoid downward cast down in the inheritance system) it can now be found in the current version of item 27 ("minimal casting (forced transformation)"), even if the text and examples of the item in the third version are completely new. An even more extreme example is the second version of item 18 ("trying to make the Interface complete (complete) and minimize") (this title borrows Mr. Hou Jie's second version of the translation-Translator's note ). One of the main conclusions of that item is: prospective member functions (candidate member function) that does not require special access to non-public (non-public) components) generally, it should be non-members (non-members ). In the third edition, different (stronger) arguments are used to achieve the same results, therefore, item 18 in the second version maps to item 23 in the third version ("replace Member functions (member function) with non-member non-friend functions (non-member non-friend function )"), even if the only difference between the two items is their conclusion.
Second edition to Third Edition
2nd ed. |
3rd ed. |
2nd ed. |
3rd ed. |
2nd ed. |
3rd ed. |
1 |
2 |
18 |
23 |
35 |
32 |
2 |
- |
19 |
24 |
36 |
34 |
3 |
- |
20 |
22 |
37 |
36 |
4 |
- |
21 |
3 |
38 |
37 |
5 |
16 |
22 |
20 |
39 |
27 |
6 |
13 |
23 |
21 |
40 |
38 |
7 |
49 |
24 |
- |
41 |
41 |
8 |
51 |
25 |
- |
42 |
39 |
9 |
52 |
26 |
- |
43 |
44, 40 |
10 |
50 |
27 |
6 |
44 |
- |
11 |
14 |
28 |
- |
45 |
5 |
12 |
4 |
29 |
28 |
46 |
18 |
13 |
4 |
30 |
28 |
47 |
4 |
14 |
7 |
31 |
21 |
48 |
53 |
15 |
10 |
32 |
26 |
49 |
54 |
16 |
12 |
33 |
30 |
50 |
- |
17 |
11 |
34 |
31 |
|
|
Third edition to Second Edition
3rd ed. |
2nd ed. |
3rd ed. |
2nd ed. |
3rd ed. |
2nd ed. |
1 |
- |
20 |
22 |
39 |
42 |
2 |
1 |
21 |
23, 31 |
40 |
43 |
3 |
21 |
22 |
20 |
41 |
41 |
4 |
12, 13, 47 |
23 |
18 |
42 |
- |
5 |
45 |
24 |
19 |
43 |
- |
6 |
27 |
25 |
- |
44 |
42 |
7 |
14 |
26 |
32 |
45 |
- |
8 |
- |
27 |
39 |
46 |
- |
9 |
- |
28 |
29, 30 |
47 |
- |
10 |
15 |
29 |
- |
48 |
- |
11 |
17 |
30 |
33 |
49 |
7 |
12 |
16 |
31 |
34 |
50 |
10 |
13 |
6 |
32 |
35 |
51 |
8 |
14 |
11 |
33 |
9 |
52 |
9 |
15 |
- |
34 |
36 |
53 |
48 |
16 |
5 |
35 |
- |
54 |
49 |
17 |
- |
36 |
37 |
55 |
- |
18 |
46 |
37 |
38 |
|
|
19 |
Pp. 77-79 |
38 |
40 |
|
|