We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
f1
1 parent 10468bf commit 118734dCopy full SHA for 118734d
source/declarations.tex
@@ -2182,7 +2182,7 @@
2182
decltype(auto) x6d = { 1, 2 }; // error: \tcode{\{ 1, 2 \}} is not an expression
2183
auto *x7a = &i; // \tcode{decltype(x7a)} is \tcode{int*}
2184
decltype(auto)*x7d = &i; // error: declared type is not plain \tcode{decltype(auto)}
2185
-auto f1(int x) -> decltype((x)) { return (x); } // return type is \tcode{int\&}
+auto f1(int x) -> decltype((x)); // return type is \tcode{int\&}
2186
auto f2(int x) -> decltype(auto) { return (x); } // return type is \tcode{int\&\&}
2187
\end{codeblock}
2188
\end{example}
0 commit comments