Skip to content

Commit 05b8ac7

Browse files
committed
[class.free] Prohibit explicit object parameter for allocation and deallocation functions
1 parent b96291c commit 05b8ac7

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

source/classes.tex

+4
Original file line numberDiff line numberDiff line change
@@ -6775,6 +6775,10 @@
67756775
\end{codeblock}
67766776
\end{note}
67776777

6778+
\pnum
6779+
An allocation or deallocation funtion for a class
6780+
shall not have an explicit object parameter\iref{dcl.fct}.
6781+
67786782
\pnum
67796783
Access to the deallocation function is checked statically,
67806784
even if a different one is actually executed.

0 commit comments

Comments
 (0)