section T, minor stuff (#1484)

- added space between two sentences
- added missing closing bracket
- typo "of" -> "or"
This commit is contained in:
beinhaerter
2019-08-01 20:23:19 +02:00
committed by Herb Sutter
parent 796ce80102
commit 96c14cced6

View File

@@ -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?
} }