Skip to content

Commit 182937c

Browse files
committed
[dcl.fct] Move use of "parameter-type-list" to after its definition.
Split rules on function redeclarations out of rules for determining the type of an individual function.
1 parent bf363db commit 182937c

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

source/declarators.tex

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1426,12 +1426,7 @@
14261426
\end{note}
14271427

14281428
\pnum
1429-
\indextext{overloading}%
14301429
\indextext{type!function}%
1431-
A single name can be used for several different functions in a single scope;
1432-
this is function overloading (Clause~\ref{over}).
1433-
All declarations for a function shall have equivalent return types,
1434-
parameter-type-lists, and \grammarterm{requires-clause}{s}~(\ref{temp.over.link}).
14351430
The type of a function is determined using the following rules.
14361431
The type of each parameter (including function parameter packs) is
14371432
determined from its own
@@ -1533,6 +1528,13 @@
15331528
(\ref{dcl.type}).
15341529
\end{example}
15351530

1531+
\pnum
1532+
\indextext{overloading}%
1533+
A single name can be used for several different functions in a single scope;
1534+
this is function overloading (Clause~\ref{over}).
1535+
All declarations for a function shall have equivalent return types,
1536+
parameter-type-lists, and \grammarterm{requires-clause}{s}~(\ref{temp.over.link}).
1537+
15361538
\pnum
15371539
\indextext{function return type|see{return type}}%
15381540
\indextext{return type}%

0 commit comments

Comments
 (0)