File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -8440,7 +8440,7 @@ Convenience of use and avoidance of errors.
8440
8440
8441
8441
Day& operator++(Day& d)
8442
8442
{
8443
- return d = (d== Day::sun) ? Day::mon : static_cast<Day>(static_cast<int>(d)+1);
8443
+ return d = (d == Day::sun) ? Day::mon : static_cast<Day>(static_cast<int>(d)+1);
8444
8444
}
8445
8445
8446
8446
Day today = Day::sat;
@@ -8450,9 +8450,9 @@ The use of a `static_cast` is not pretty, but
8450
8450
8451
8451
Day& operator++(Day& d)
8452
8452
{
8453
- return d = (d== Day::sun) ? Day::mon : Day{++d}; // error
8453
+ return d = (d == Day::sun) ? Day::mon : Day{++d}; // error
8454
8454
}
8455
-
8455
+
8456
8456
is an infinite recursion, and writing it without a cast, using a `switch` on all cases is long-winded.
8457
8457
8458
8458
@@ -19539,7 +19539,7 @@ and here are the [slides](http://2017.cppconf.ru/talks/sergey-zubkov). In Russia
19539
19539
* Bjarne Stroustrup: [No Littering!](https://www.youtube.com/watch?v=01zI9kV4h8c). Bay Area ACCU 2016.
19540
19540
It gives some idea of the ambition level for the Core Guidelines.
19541
19541
19542
- Note that slides for CppCon presentations are available (links with the posted videos videos ).
19542
+ Note that slides for CppCon presentations are available (links with the posted videos).
19543
19543
19544
19544
Contributions to this list would be most welcome.
19545
19545
You can’t perform that action at this time.
0 commit comments