* [PATCH] Add <span> to <bits/stdc++.h> precompiled header
@ 2019-10-04 12:17 Jonathan Wakely
0 siblings, 0 replies; only message in thread
From: Jonathan Wakely @ 2019-10-04 12:17 UTC (permalink / raw)
To: libstdc++, gcc-patches
[-- Attachment #1: Type: text/plain, Size: 169 bytes --]
* include/precompiled/stdc++.h: Include <span> for C++20.
* testsuite/17_intro/names.cc: Do not define 'e' for C++20.
Tested powerpc64le-linux, committed to trunk.
[-- Attachment #2: patch.txt --]
[-- Type: text/plain, Size: 1320 bytes --]
commit 006bdafbe76441914f0743ea6879a27f2fa2edfd
Author: redi <redi@138bc75d-0d04-0410-961f-82ee72b054a4>
Date: Fri Oct 4 12:16:56 2019 +0000
Add <span> to <bits/stdc++.h> precompiled header
* include/precompiled/stdc++.h: Include <span> for C++20.
* testsuite/17_intro/names.cc: Do not define 'e' for C++20.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@276574 138bc75d-0d04-0410-961f-82ee72b054a4
diff --git a/libstdc++-v3/include/precompiled/stdc++.h b/libstdc++-v3/include/precompiled/stdc++.h
index d62f64b9f6e..4b668fddc03 100644
--- a/libstdc++-v3/include/precompiled/stdc++.h
+++ b/libstdc++-v3/include/precompiled/stdc++.h
@@ -139,7 +139,7 @@
// #include <concepts>
#include <numbers>
// #include <ranges>
-// #include <span>
+#include <span>
// #include <syncstream>
#include <version>
#endif
diff --git a/libstdc++-v3/testsuite/17_intro/names.cc b/libstdc++-v3/testsuite/17_intro/names.cc
index cab25498043..3d6148fa0e8 100644
--- a/libstdc++-v3/testsuite/17_intro/names.cc
+++ b/libstdc++-v3/testsuite/17_intro/names.cc
@@ -53,7 +53,10 @@
#endif
// <queue> and <stack> defined data members called c
#define d (
+#if __cplusplus <= 201703L
+// <numbers> defines std::numbers::e
#define e (
+#endif
#define f (
#define g (
#if __cplusplus >= 201402L
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2019-10-04 12:17 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-10-04 12:17 [PATCH] Add <span> to <bits/stdc++.h> precompiled 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).