Skip to content

Commit 22c305f

Browse files
committed
travis fixes and a typo
1 parent 70655d1 commit 22c305f

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

CppCoreGuidelines.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8440,7 +8440,7 @@ Convenience of use and avoidance of errors.
84408440

84418441
Day& operator++(Day& d)
84428442
{
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);
84448444
}
84458445

84468446
Day today = Day::sat;
@@ -8450,9 +8450,9 @@ The use of a `static_cast` is not pretty, but
84508450

84518451
Day& operator++(Day& d)
84528452
{
8453-
return d = (d== Day::sun) ? Day::mon : Day{++d}; // error
8453+
return d = (d == Day::sun) ? Day::mon : Day{++d}; // error
84548454
}
8455-
8455+
84568456
is an infinite recursion, and writing it without a cast, using a `switch` on all cases is long-winded.
84578457

84588458

@@ -19539,7 +19539,7 @@ and here are the [slides](http://2017.cppconf.ru/talks/sergey-zubkov). In Russia
1953919539
* Bjarne Stroustrup: [No Littering!](https://www.youtube.com/watch?v=01zI9kV4h8c). Bay Area ACCU 2016.
1954019540
It gives some idea of the ambition level for the Core Guidelines.
1954119541

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).
1954319543

1954419544
Contributions to this list would be most welcome.
1954519545

0 commit comments

Comments
 (0)