Skip to content

Commit 2ea2858

Browse files
committed
[dcl.inline] Move note that 'inline' doesn't affect linkage somewhere
more suitable.
1 parent a6f1f00 commit 2ea2858

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

source/declarations.tex

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1058,6 +1058,9 @@
10581058
the point of call; however, even if this inline substitution is omitted,
10591059
the other rules for inline functions specified in this subclause shall
10601060
still be respected.
1061+
\begin{note}
1062+
The \tcode{inline} keyword has no effect on the linkage of a function.
1063+
\end{note}
10611064

10621065
\pnum
10631066
A variable declaration with an \tcode{inline} specifier declares an
@@ -1067,10 +1070,8 @@
10671070
A function defined within a class definition is an inline function.
10681071

10691072
\pnum
1070-
The \tcode{inline} specifier shall not appear on a block scope
1071-
declaration%
1072-
\footnote{The \tcode{inline} keyword has no effect on the linkage of a function.}
1073-
or on the declaration of a function parameter.
1073+
The \tcode{inline} specifier shall not appear on a block scope declaration or
1074+
on the declaration of a function parameter.
10741075
If the \tcode{inline} specifier is used in a friend function declaration, that
10751076
declaration shall be a definition or the function shall have previously
10761077
been declared inline.

0 commit comments

Comments
 (0)