diff options
| author | Leitwolf11 | 2026-10-31 13:01:04 +0300 |
|---|---|---|
| committer | Leitwolf11 | 2026-10-31 13:01:04 +0300 |
| commit | 1f5458322669301f62599c1ec5dacb77b5dc2d8d (patch) | |
| tree | 7e32402fa9c06014328a27d7972c2fb1a9484352 /Guide/TYPES-AND-CLASSES.md | |
| parent | 8d1fb4807edc7920fbecd0554c9c61625827e19c (diff) | |
| download | progmasoft-cpp-docs/cpp17-and-cpp20.tar.gz | |
Cover C++17 as well as C++20docs/cpp17-and-cpp20
A project now picks one version. C++20 stays the default, and C++17 is
for libraries meant for other people's projects, because it is still the
widest common target and works in every later standard.
Section 5.13 gives the C++17 form of each C++20 feature the guide uses
and the checks such a project needs: CI in the versions it promises, with
each compiler, and headers that compile in default compiler modes.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
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 `&`. |