public inbox for
 help / color / mirror / Atom feed
* [committed] libstdc++: Add <initializer_list> to ranges_base.h header
@ 2022-09-21  7:45 Jonathan Wakely
  0 siblings, 0 replies; only message in thread
From: Jonathan Wakely @ 2022-09-21  7:45 UTC (permalink / raw)
  To: libstdc++, gcc-patches

Tested powerpc64le-linux, pushed to trunk.

-- >8 --

The header should be included explicitly to use std::initializer_list.
With the upcoming changes to make <ranges> available for freestanding
this becomes an error, because <initializer_list> is no longer provided
by any of the other headers involved here.


	* include/bits/ranges_base.h: Include <initializer_list>.
 libstdc++-v3/include/bits/ranges_base.h | 1 +
 1 file changed, 1 insertion(+)

diff --git a/libstdc++-v3/include/bits/ranges_base.h b/libstdc++-v3/include/bits/ranges_base.h
index 866d7c56cbc..805f196cc9f 100644
--- a/libstdc++-v3/include/bits/ranges_base.h
+++ b/libstdc++-v3/include/bits/ranges_base.h
@@ -33,6 +33,7 @@
 #pragma GCC system_header
 #if __cplusplus > 201703L
+#include <initializer_list>
 #include <bits/iterator_concepts.h>
 #include <ext/numeric_traits.h>
 #include <bits/max_size_type.h>

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2022-09-21  7:45 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-09-21  7:45 [committed] libstdc++: Add <initializer_list> to ranges_base.h header Jonathan Wakely

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).