aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJonathan Wakely <jwakely@redhat.com>2022-09-14 15:52:44 +0100
committerJonathan Wakely <jwakely@redhat.com>2022-09-14 19:17:36 +0100
commit7f1e3d06bb9a39fb42afd4d0ea1a103fe239b1cb (patch)
treecd5597ab0c801c47b4e14c1d8c8a91517a37b46d
parent9a1bc4b463e61cd5bc5f169a08a420aae39a07f6 (diff)
downloadgcc-7f1e3d06bb9a39fb42afd4d0ea1a103fe239b1cb.zip
gcc-7f1e3d06bb9a39fb42afd4d0ea1a103fe239b1cb.tar.gz
gcc-7f1e3d06bb9a39fb42afd4d0ea1a103fe239b1cb.tar.bz2
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>.
-rw-r--r--libstdc++-v3/include/bits/stl_tempbuf.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/libstdc++-v3/include/bits/stl_tempbuf.h b/libstdc++-v3/include/bits/stl_tempbuf.h
index db7cdb1..82f2dc8 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>