[gcc r13-2676] libstdc++: Add missing <new> header to <bits/stl_tempbuf.h>
Jonathan Wakely
redi@gcc.gnu.org
Wed Sep 14 22:04:14 GMT 2022
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>
More information about the Libstdc++-cvs
mailing list