Skip to content

Commit 118734d

Browse files
committed
[dcl.type.auto.deduct] Make f1 example well-formed
1 parent 10468bf commit 118734d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

source/declarations.tex

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2182,7 +2182,7 @@
21822182
decltype(auto) x6d = { 1, 2 }; // error: \tcode{\{ 1, 2 \}} is not an expression
21832183
auto *x7a = &i; // \tcode{decltype(x7a)} is \tcode{int*}
21842184
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\&}
2185+
auto f1(int x) -> decltype((x)); // return type is \tcode{int\&}
21862186
auto f2(int x) -> decltype(auto) { return (x); } // return type is \tcode{int\&\&}
21872187
\end{codeblock}
21882188
\end{example}

0 commit comments

Comments
 (0)