public inbox for gcc-patches@gcc.gnu.org
 help / color / mirror / Atom feed
* [wwwdocs] Add sized-deallocation functions to discussion of new/delete
@ 2019-05-30 15:03 Jonathan Wakely
  0 siblings, 0 replies; only message in thread
From: Jonathan Wakely @ 2019-05-30 15:03 UTC (permalink / raw)
  To: gcc-patches

[-- Attachment #1: Type: text/plain, Size: 19 bytes --]

Committed to CVS.


[-- Attachment #2: patch.txt --]
[-- Type: text/x-patch, Size: 1286 bytes --]

Index: htdocs/gcc-9/porting_to.html
===================================================================
RCS file: /cvs/gcc/wwwdocs/htdocs/gcc-9/porting_to.html,v
retrieving revision 1.5
diff -u -r1.5 porting_to.html
--- htdocs/gcc-9/porting_to.html	13 May 2019 11:57:03 -0000	1.5
+++ htdocs/gcc-9/porting_to.html	30 May 2019 15:01:55 -0000
@@ -144,15 +144,17 @@
 <p>
 The simplest solution is to only replace the ordinary
 <code>operator new(size_t)</code> and
-<code>operator delete(void*)</code>
+<code>operator delete(void*)</code> and
+<code>operator delete(void*, size_t)</code>
 functions, and the replaced versions will be used by all of
 <code>operator new(size_t, nothrow_t)</code>,
 <code>operator new[](size_t)</code> and
 <code>operator new[](size_t, nothrow_t)</code>
 and the corresponding <code>operator delete</code> functions.
 To support types with extended alignment you may also need to replace
-<code>operator new(size_t, std::align_val_t)</code> and
-<code>operator delete(void*, std::align_val_t)</code>
+<code>operator new(size_t, align_val_t)</code> and
+<code>operator delete(void*, align_val_t)</code> and
+<code>operator delete(void*, align_val_t)</code>
 (which will then be used by the <code>nothrow</code> and array forms for
 extended alignments).
 </p>

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2019-05-30 15:03 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-05-30 15:03 [wwwdocs] Add sized-deallocation functions to discussion of new/delete Jonathan Wakely

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).