We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b0d6ba9 commit 5d765aeCopy full SHA for 5d765ae
1 file changed
source/expressions.tex
@@ -2800,7 +2800,8 @@
2800
return x+2;
2801
}(); // Updates \tcode{::x} to 6, and initializes \tcode{y} to 7.
2802
2803
-auto z = [a = 42](int a) { return 1; }; // error: parameter and conceptual local variable have the same name
+auto z = [a = 42](int a) { return 1; }; // error: parameter and conceptual local variable
2804
+ // have the same name
2805
auto counter = [i=0]() mutable -> decltype(i) { // OK, returns \tcode{int}
2806
return i++;
2807
};
0 commit comments