Skip to content

Commit 2c8fba9

Browse files
author
Dawn Perchik
committed
CWG2081 Deduced return type in redeclaration or specialization of function template
1 parent ff44122 commit 2c8fba9

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

source/declarations.tex

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1692,6 +1692,10 @@
16921692
Redeclarations or specializations of a function or function template with a
16931693
declared return type that uses a placeholder type shall also use that
16941694
placeholder, not a deduced type.
1695+
Similarly,
1696+
redeclarations or specializations of a function or function template with a
1697+
declared return type that does not use a placeholder type
1698+
shall not use a placeholder.
16951699
\begin{example}
16961700
\begin{codeblock}
16971701
auto f();

0 commit comments

Comments
 (0)