mirror of
https://github.com/isocpp/CppCoreGuidelines.git
synced 2025-12-18 21:24:41 +03:00
travis CI fixes
This commit is contained in:
@@ -5070,7 +5070,7 @@ It is closely related to the notion of Regular type from [EoP](http://elementsof
|
|||||||
vector<Date> vd2(1000, Date{Month::October, 7, 1885}); // alternative
|
vector<Date> vd2(1000, Date{Month::October, 7, 1885}); // alternative
|
||||||
|
|
||||||
The default constructor is only auto-generated if there is no user-declared constructor, hence it's impossible to initialize the vector `vd1` in the example above.
|
The default constructor is only auto-generated if there is no user-declared constructor, hence it's impossible to initialize the vector `vd1` in the example above.
|
||||||
The absense of a default value can cause surprises for users and complicate its use, so if one can be reasonably defined, it should be.
|
The absence of a default value can cause surprises for users and complicate its use, so if one can be reasonably defined, it should be.
|
||||||
|
|
||||||
`Date` is chosen to encourage thought:
|
`Date` is chosen to encourage thought:
|
||||||
There is no "natural" default date (the big bang is too far back in time to be useful for most people), so this example is non-trivial.
|
There is no "natural" default date (the big bang is too far back in time to be useful for most people), so this example is non-trivial.
|
||||||
@@ -5129,7 +5129,7 @@ Assuming that you want initialization, an explicit default initialization can he
|
|||||||
|
|
||||||
##### Example
|
##### Example
|
||||||
|
|
||||||
There are classses that simply don't have a reasonable default.
|
There are classes that simply don't have a reasonable default.
|
||||||
|
|
||||||
A class designed to be useful only as a base does not need a default constructor because it cannot be constructed by itself:
|
A class designed to be useful only as a base does not need a default constructor because it cannot be constructed by itself:
|
||||||
|
|
||||||
|
|||||||
@@ -146,6 +146,7 @@ endl
|
|||||||
enum
|
enum
|
||||||
Enum
|
Enum
|
||||||
enums
|
enums
|
||||||
|
EoP
|
||||||
eq
|
eq
|
||||||
eqdefault
|
eqdefault
|
||||||
EqualityComparable
|
EqualityComparable
|
||||||
@@ -305,6 +306,7 @@ mtx
|
|||||||
Murray93
|
Murray93
|
||||||
mutex
|
mutex
|
||||||
mutexes
|
mutexes
|
||||||
|
mx
|
||||||
myMap
|
myMap
|
||||||
MyMap
|
MyMap
|
||||||
myset
|
myset
|
||||||
|
|||||||
Reference in New Issue
Block a user