mirror of
https://github.com/isocpp/CppCoreGuidelines.git
synced 2025-12-17 04:44:34 +03:00
section T, minor stuff (#1484)
- added space between two sentences - added missing closing bracket - typo "of" -> "or"
This commit is contained in:
@@ -17680,8 +17680,8 @@ Typically, the solution is to make what would have been a nested class non-local
|
|||||||
List<int, My_allocator> lst2;
|
List<int, My_allocator> lst2;
|
||||||
|
|
||||||
Some people found the idea that the `Link` no longer was hidden inside the list scary, so we named the technique
|
Some people found the idea that the `Link` no longer was hidden inside the list scary, so we named the technique
|
||||||
[SCARY](http://www.open-std.org/jtc1/sc22/WG21/docs/papers/2009/n2911.pdf).From that academic paper:
|
[SCARY](http://www.open-std.org/jtc1/sc22/WG21/docs/papers/2009/n2911.pdf). From that academic paper:
|
||||||
"The acronym SCARY describes assignments and initializations that are Seemingly erroneous (appearing Constrained by conflicting generic parameters), but Actually work with the Right implementation (unconstrained bY the conflict due to minimized dependencies."
|
"The acronym SCARY describes assignments and initializations that are Seemingly erroneous (appearing Constrained by conflicting generic parameters), but Actually work with the Right implementation (unconstrained bY the conflict due to minimized dependencies)."
|
||||||
|
|
||||||
##### Enforcement
|
##### Enforcement
|
||||||
|
|
||||||
@@ -17841,7 +17841,7 @@ When `concept`s become widely available such alternatives can be distinguished d
|
|||||||
template<typename T, typename U>
|
template<typename T, typename U>
|
||||||
void f(T t, U u)
|
void f(T t, U u)
|
||||||
{
|
{
|
||||||
T v1(x); // is v1 a function of a variable?
|
T v1(x); // is v1 a function or a variable?
|
||||||
T v2 {x}; // variable
|
T v2 {x}; // variable
|
||||||
auto x = T(u); // construction or cast?
|
auto x = T(u); // construction or cast?
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user