Skip to content

Commit 836b952

Browse files
committed
[class.free] Prohibit explicit object parameter for allocation and deallocation functions
1 parent 0c799f3 commit 836b952

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

source/classes.tex

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2991,6 +2991,10 @@
29912991
\end{codeblock}
29922992
\end{note}
29932993

2994+
\pnum
2995+
An allocation or deallocation function for a class
2996+
shall not have an explicit object parameter\iref{dcl.fct}.
2997+
29942998
\pnum
29952999
Access to the deallocation function is checked statically,
29963000
even if a different one is actually executed.

0 commit comments

Comments
 (0)