diff options
| author | Leitwolf | 2026-10-31 13:01:49 +0300 |
|---|---|---|
| committer | GitHub | 2026-10-31 13:01:49 +0300 |
| commit | c0e89a73611f5730ff4d5172adb2a07be98d7b48 (patch) | |
| tree | 7e32402fa9c06014328a27d7972c2fb1a9484352 /Guide/TYPES-AND-CLASSES.md | |
| parent | 8d1fb4807edc7920fbecd0554c9c61625827e19c (diff) | |
| parent | 1f5458322669301f62599c1ec5dacb77b5dc2d8d (diff) | |
| download | progmasoft-cpp-main.tar.gz | |
Cover C++17 as well as C++20
Diffstat (limited to 'Guide/TYPES-AND-CLASSES.md')
| -rw-r--r-- | Guide/TYPES-AND-CLASSES.md | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Guide/TYPES-AND-CLASSES.md b/Guide/TYPES-AND-CLASSES.md index d1140a7..93bf064 100644 --- a/Guide/TYPES-AND-CLASSES.md +++ b/Guide/TYPES-AND-CLASSES.md @@ -101,7 +101,7 @@ A type that must not be copied deletes the copy operations explicitly instead of - Overload an operator only when it means what it means for built-in types: `+` adds, `==` compares for equality, `[]` indexes. A reader must never wonder what `a << b` does to `a`. - **Default comparisons**: `operator==` and, when there is an order, `operator<=>`, both `= default` where memberwise - comparison is right. + comparison is right. [C++17 has neither](LANGUAGE.md#513-c17-projects). - Binary operators that are symmetric are hidden friends or non-members, so both operands convert the same way. - No overloads of `&&`, `||`, `,` or unary `&`. |