[committed] libstdc++: Add missing <new> header to <bits/stl_tempbuf.h>

Message ID 20220914220435.276306-1-jwakely@redhat.com
State New, archived
Headers
Series [committed] libstdc++: Add missing <new> header to <bits/stl_tempbuf.h> |

Commit Message

Jonathan Wakely Sept. 14, 2022, 10:04 p.m. UTC
  Tested powerpc64le-linux, pushed to trunk.

-- >8 --

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>.
---
 libstdc++-v3/include/bits/stl_tempbuf.h | 1 +
 1 file changed, 1 insertion(+)
  

Patch

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>