Skip to content

Commit 85525b1

Browse files
sdkrystiantkoeppe
authored andcommitted
[dcl.dcl] Improve note regarding nodeclspec-function-declarations
1 parent 753c833 commit 85525b1

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

source/declarations.tex

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -216,8 +216,9 @@
216216
A \grammarterm{nodeclspec-function-declaration} shall declare a
217217
constructor, destructor, or conversion function.
218218
\begin{note}
219-
A \grammarterm{nodeclspec-function-declaration} can only be used in a
220-
\grammarterm{template-declaration}\iref{temp.pre},
219+
Because a member function cannot be subject to a non-defining declaration
220+
outside of a class definition\iref{class.mfct}, a \grammarterm{nodeclspec-function-declaration}
221+
can only be used in a \grammarterm{template-declaration}\iref{temp.pre},
221222
\grammarterm{explicit-instantiation}\iref{temp.explicit}, or
222223
\grammarterm{explicit-specialization}\iref{temp.expl.spec}.
223224
\end{note}

0 commit comments

Comments
 (0)