Commit 198adb8
committed
book: strengthen motivation for delegating/inheriting constructors
Delegating constructors led with a vague 'simplify the code'; now it
explains the concrete problem (duplicated init logic that a private init
function can't solve for const/reference members). Inheriting
constructors mislabeled boilerplate as 'inefficiency'; reword to the
real motivation (tedious per-constructor forwarding).1 parent f5c82c6 commit 198adb8
2 files changed
Lines changed: 4 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1005 | 1005 | | |
1006 | 1006 | | |
1007 | 1007 | | |
1008 | | - | |
1009 | | - | |
| 1008 | + | |
1010 | 1009 | | |
1011 | 1010 | | |
1012 | 1011 | | |
| |||
1033 | 1032 | | |
1034 | 1033 | | |
1035 | 1034 | | |
1036 | | - | |
| 1035 | + | |
1037 | 1036 | | |
1038 | 1037 | | |
1039 | 1038 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
920 | 920 | | |
921 | 921 | | |
922 | 922 | | |
923 | | - | |
| 923 | + | |
924 | 924 | | |
925 | 925 | | |
926 | 926 | | |
| |||
947 | 947 | | |
948 | 948 | | |
949 | 949 | | |
950 | | - | |
| 950 | + | |
951 | 951 | | |
952 | 952 | | |
953 | 953 | | |
| |||
0 commit comments