Skip to content

Commit

Permalink
[dcl.inline] p2 - make it recommended practice
Browse files Browse the repository at this point in the history
  • Loading branch information
Eisenwave committed Aug 6, 2023
1 parent 3a2586c commit 016af14
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions source/declarations.tex
Original file line number Diff line number Diff line change
Expand Up @@ -1010,13 +1010,12 @@
\indextext{inline function}%
A function declaration\iref{dcl.fct,class.mfct,class.friend}
with an \keyword{inline} specifier declares an
\defnadj{inline}{function}. The inline specifier indicates to
\defnadj{inline}{function}.

\recommended
The \keyword{inline} specifier indicates to
the implementation that inline substitution of the function body at the
point of call is to be preferred to the usual function call mechanism.
An implementation is not required to perform this inline substitution at
the point of call; however, even if this inline substitution is omitted,
the other rules for inline functions specified in this subclause shall
still be respected.
\begin{note}
The \keyword{inline} keyword has no effect on the linkage of a function.
In certain cases, an inline function cannot use names with internal linkage;
Expand Down

0 comments on commit 016af14

Please sign in to comment.