libstdc++: Add missing <new> header to <bits/stl_tempbuf.h>
authorJonathan Wakely <jwakely@redhat.com>
Wed, 14 Sep 2022 14:52:44 +0000 (15:52 +0100)
committerJonathan Wakely <jwakely@redhat.com>
Wed, 14 Sep 2022 18:17:36 +0000 (19:17 +0100)
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

index db7cdb1..82f2dc8 100644 (file)
@@ -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>