Add <span> to <bits/stdc++.h> precompiled header
authorJonathan Wakely <jwakely@redhat.com>
Fri, 4 Oct 2019 12:16:56 +0000 (13:16 +0100)
committerJonathan Wakely <redi@gcc.gnu.org>
Fri, 4 Oct 2019 12:16:56 +0000 (13:16 +0100)
* include/precompiled/stdc++.h: Include <span> for C++20.
* testsuite/17_intro/names.cc: Do not define 'e' for C++20.

From-SVN: r276574

libstdc++-v3/ChangeLog
libstdc++-v3/include/precompiled/stdc++.h
libstdc++-v3/testsuite/17_intro/names.cc

index 7beb037110d88ae7c7404fac9fade66fc5874ab6..0076d95100b4908d448a189c451ded8e1aa2a120 100644 (file)
@@ -1,3 +1,8 @@
+2019-10-04  Jonathan Wakely  <jwakely@redhat.com>
+
+       * include/precompiled/stdc++.h: Include <span> for C++20.
+       * testsuite/17_intro/names.cc: Do not define 'e' for C++20.
+
 2019-10-03  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
 
        * include/parallel/multiway_merge.h (_RAIter3): Replace _C by _Cp.
index d62f64b9f6e8f80f5c6675e610c65ff92adc6b46..4b668fddc037311ba1447668fb83504d5e35508f 100644 (file)
 // #include <concepts>
 #include <numbers>
 // #include <ranges>
-// #include <span>
+#include <span>
 // #include <syncstream>
 #include <version>
 #endif
index cab2549804300b66902a3eaf7755656db593342c..3d6148fa0e8d29c64db7dd90b6f4358cdbe2a79a 100644 (file)
 #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