]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
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 db7cdb14ca97b2e3dd0c1196c3b9a802d36096e3..82f2dc8055fb354643148841f27a7ab62b78d1a6 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>