Skip to content

Commit c9f583a

Browse files
committed
[class.free] Prohibit explicit object parameter for allocation and deallocation functions
1 parent 59c8164 commit c9f583a

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
@@ -2996,6 +2996,10 @@
29962996
\end{example}
29972997
\end{note}
29982998

2999+
\pnum
3000+
An allocation or deallocation function for a class
3001+
shall not have an explicit object parameter\iref{dcl.fct}.
3002+
29993003
\pnum
30003004
Access to the deallocation function is checked statically,
30013005
even if a different one is actually executed.

0 commit comments

Comments
 (0)