public inbox for libstdc++-cvs@sourceware.org
help / color / mirror / Atom feed
* [gcc r13-2676] libstdc++: Add missing <new> header to <bits/stl_tempbuf.h>
@ 2022-09-14 22:04 Jonathan Wakely
  0 siblings, 0 replies; only message in thread
From: Jonathan Wakely @ 2022-09-14 22:04 UTC (permalink / raw)
  To: gcc-cvs, libstdc++-cvs

https://gcc.gnu.org/g:7f1e3d06bb9a39fb42afd4d0ea1a103fe239b1cb

commit r13-2676-g7f1e3d06bb9a39fb42afd4d0ea1a103fe239b1cb
Author: Jonathan Wakely <jwakely@redhat.com>
Date:   Wed Sep 14 15:52:44 2022 +0100

    libstdc++: Add missing <new> header to <bits/stl_tempbuf.h>
    
    This is needed for std::nothrow and the nothrow operator new overload,
    so should be included explicitly.
    
    libstdc++-v3/ChangeLog:
    
            * include/bits/stl_tempbuf.h: Include <new>.

Diff:
---
 libstdc++-v3/include/bits/stl_tempbuf.h | 1 +
 1 file changed, 1 insertion(+)

diff --git a/libstdc++-v3/include/bits/stl_tempbuf.h b/libstdc++-v3/include/bits/stl_tempbuf.h
index db7cdb14ca9..82f2dc8055f 100644
--- a/libstdc++-v3/include/bits/stl_tempbuf.h
+++ b/libstdc++-v3/include/bits/stl_tempbuf.h
@@ -56,6 +56,7 @@
 #ifndef _STL_TEMPBUF_H
 #define _STL_TEMPBUF_H 1
 
+#include <new>
 #include <bits/stl_algobase.h>
 #include <bits/stl_construct.h>

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

only message in thread, other threads:[~2022-09-14 22:04 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-09-14 22:04 [gcc r13-2676] libstdc++: Add missing <new> header to <bits/stl_tempbuf.h> 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).