diff options
author | Arsen Arsenović <arsen@aarsen.me> | 2023-11-08 10:22:47 +0100 |
---|---|---|
committer | Arsen Arsenović <arsen@gcc.gnu.org> | 2023-11-10 00:10:51 +0100 |
commit | d9dbc835d4d6353281218d030f5aed6fdef43a66 (patch) | |
tree | 0a494ecfa65123c7d94d8e1208ff8184dfc4fbd3 | |
parent | 8625aa246696695ef5c20aba847a8f39019ab8d3 (diff) | |
download | gcc-d9dbc835d4d6353281218d030f5aed6fdef43a66.zip gcc-d9dbc835d4d6353281218d030f5aed6fdef43a66.tar.gz gcc-d9dbc835d4d6353281218d030f5aed6fdef43a66.tar.bz2 |
libstdc++: declare std::allocator in !HOSTED as an extension
This allows us to add features to freestanding which allow specifying
non-default allocators (generators, collections, ...) without having to
modify them.
libstdc++-v3/ChangeLog:
* include/bits/memoryfwd.h: Remove HOSTED check around allocator
and its specializations.
-rw-r--r-- | libstdc++-v3/include/bits/memoryfwd.h | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/libstdc++-v3/include/bits/memoryfwd.h b/libstdc++-v3/include/bits/memoryfwd.h index 330a6df..2b79cd8 100644 --- a/libstdc++-v3/include/bits/memoryfwd.h +++ b/libstdc++-v3/include/bits/memoryfwd.h @@ -60,13 +60,12 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION * @{ */ -#if _GLIBCXX_HOSTED + // Included in freestanding as a libstdc++ extension. template<typename> class allocator; template<> class allocator<void>; -#endif #if __cplusplus >= 201103L /// Declare uses_allocator so it can be specialized in `<queue>` etc. |