File tree 2 files changed +4
-3
lines changed
2 files changed +4
-3
lines changed Original file line number Diff line number Diff line change 2656
2656
void g() {
2657
2657
const int N = 10;
2658
2658
[=] {
2659
- int arr[N]; // OK, not an odr-use, refers to automatic variable
2659
+ int arr[N]; // OK, not an odr-use, refers to variable with automatic storage duration
2660
2660
f(&N); // OK, causes \tcode {N} to be captured; \tcode {\& N} points to
2661
2661
// the corresponding member of the closure type
2662
2662
};
7609
7609
\begin {note }
7610
7610
If the odr-use occurs in an invocation
7611
7611
of a function call operator of a closure type,
7612
- it no longer refers to \keyword {this} or to an enclosing automatic variable
7612
+ it no longer refers to \keyword {this} or to an enclosing
7613
+ variable with automatic storage duration
7613
7614
due to the transformation\iref {expr.prim.lambda.capture }
7614
7615
of the \grammarterm {id-expression} into
7615
7616
an access of the corresponding data member.
Original file line number Diff line number Diff line change 6855
6855
without turning on \tcode{ios_base::badbit} in the error state of \tcode{os}.
6856
6856
\end{itemize}
6857
6857
After constructing a \tcode{sentry} object,
6858
- the function initializes an automatic variable via
6858
+ the function initializes a variable with automatic storage duration via
6859
6859
\begin{codeblock}
6860
6860
string out = vformat(os.getloc(), fmt, args);
6861
6861
\end{codeblock}
You can’t perform that action at this time.
0 commit comments