Skip to content

Commit 5d765ae

Browse files
authored
[expr.prim.lambda.capture] Avoid automatic linebreak in comment (#8704)
1 parent b0d6ba9 commit 5d765ae

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

source/expressions.tex

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2800,7 +2800,8 @@
28002800
return x+2;
28012801
}(); // Updates \tcode{::x} to 6, and initializes \tcode{y} to 7.
28022802

2803-
auto z = [a = 42](int a) { return 1; }; // error: parameter and conceptual local variable have the same name
2803+
auto z = [a = 42](int a) { return 1; }; // error: parameter and conceptual local variable
2804+
// have the same name
28042805
auto counter = [i=0]() mutable -> decltype(i) { // OK, returns \tcode{int}
28052806
return i++;
28062807
};

0 commit comments

Comments
 (0)