<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta http-equiv="Content-Type" content="text/xhtml; charset=utf-8">
</head>
<body>
<div style="font-family:sans-serif"><div style="white-space:normal">
<p dir="auto">On 3 Dec 2018, at 21:51, Richard Smith via cfe-dev wrote:</p>
</div>
<div style="white-space:normal"><blockquote style="border-left:2px solid #777; color:#777; margin:0 0 5px; padding-left:5px"><p dir="auto">More generally, a (non-placement) new-expression is not required to call<br>
any 'operator new' in particular to get its storage.</p>
</blockquote></div>
<div style="white-space:normal">
<p dir="auto">To be precise, this rule applies to new-expressions that directly use one<br>
of the "replaceable global allocation functions", which both includes some<br>
placement forms (e.g. <code style="background-color:#F7F7F7; border-radius:3px; margin:0; padding:0 0.4em" bgcolor="#F7F7F7">new (std::nothrow) double[10]</code>) and excludes some<br>
non-placement forms (e.g. <code style="background-color:#F7F7F7; border-radius:3px; margin:0; padding:0 0.4em" bgcolor="#F7F7F7">new MyClass</code> where <code style="background-color:#F7F7F7; border-radius:3px; margin:0; padding:0 0.4em" bgcolor="#F7F7F7">MyClass</code> declares an<br>
<code style="background-color:#F7F7F7; border-radius:3px; margin:0; padding:0 0.4em" bgcolor="#F7F7F7">operator new</code>).</p>
<p dir="auto">John.</p>
</div>
</div>
</body>
</html>