mirror of
https://github.com/isocpp/CppCoreGuidelines.git
synced 2025-12-17 20:54:41 +03:00
Three more bugs fixed.
This commit is contained in:
@@ -5904,7 +5904,7 @@ Fortunately, the type system will catch many such mistakes.
|
|||||||
|
|
||||||
##### Note
|
##### Note
|
||||||
|
|
||||||
be particularly careful about common and popular names, such as `open`, `move`, `+`, and `==`.
|
Be particularly careful about common and popular names, such as `open`, `move`, `+`, and `==`.
|
||||||
|
|
||||||
##### Enforcement
|
##### Enforcement
|
||||||
|
|
||||||
@@ -5914,7 +5914,7 @@ be particularly careful about common and popular names, such as `open`, `move`,
|
|||||||
|
|
||||||
##### Reason
|
##### Reason
|
||||||
|
|
||||||
Implicit conversions can be essential (e.g., `double` to '`int`) but often cause surprises (e.g., `String` to C-style string).
|
Implicit conversions can be essential (e.g., `double` to `int`) but often cause surprises (e.g., `String` to C-style string).
|
||||||
|
|
||||||
##### Note
|
##### Note
|
||||||
|
|
||||||
@@ -6017,7 +6017,7 @@ You can overload by defining two different lambdas with the same name.
|
|||||||
|
|
||||||
##### Enforcement
|
##### Enforcement
|
||||||
|
|
||||||
The compiler catches attempt to overload a lambda.
|
The compiler catches the attempt to overload a lambda.
|
||||||
|
|
||||||
## <a name="SS-union"></a> C.union: Unions
|
## <a name="SS-union"></a> C.union: Unions
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user