Skip to content

Commit 0079917

Browse files
committed
P2013R5 Freestanding Language: Optional ::operator new
1 parent d544cfc commit 0079917

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed

source/support.tex

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2242,6 +2242,25 @@
22422242
is not a valid alignment value,
22432243
the behavior is undefined.
22442244

2245+
\pnum
2246+
On freestanding implementations,
2247+
it is \impldef{whether freestanding default replaceable global allocation functions satisfy required behavior}
2248+
whether the default versions of the replaceable global allocation functions
2249+
satisfy the required behaviors
2250+
described in \ref{new.delete.single} and \ref{new.delete.array}.
2251+
\begin{note}
2252+
A freestanding implementation's default versions of
2253+
the replaceable global allocation functions
2254+
can cause undefined behavior when invoked.
2255+
During constant evaluation,
2256+
the behaviors of those default versions are irrelevant,
2257+
as those calls are omitted\iref{expr.new}.
2258+
\end{note}
2259+
2260+
\recommended
2261+
If any of the default versions of the replaceable global allocation functions
2262+
meet the requirements of a hosted implementation, they all should.
2263+
22452264
\newcommand{\replaceabledesc}[1]{%
22462265
A \Cpp{} program may define functions with #1 of these function signatures,
22472266
and thereby displace the default versions defined by the

0 commit comments

Comments
 (0)