public inbox for libstdc++-cvs@sourceware.org
help / color / mirror / Atom feed
* [gcc r11-8757] libstdc++: Make <experimental/simd> depend on C++17
@ 2021-07-15 19:53 Jonathan Wakely
  0 siblings, 0 replies; only message in thread
From: Jonathan Wakely @ 2021-07-15 19:53 UTC (permalink / raw)
  To: gcc-cvs, libstdc++-cvs

https://gcc.gnu.org/g:a2a1158ce21690e3760d26be1ae4531f1fe08a18

commit r11-8757-ga2a1158ce21690e3760d26be1ae4531f1fe08a18
Author: Jonathan Wakely <jwakely@redhat.com>
Date:   Wed Jun 30 21:35:51 2021 +0100

    libstdc++: Make <experimental/simd> depend on C++17
    
    Signed-off-by: Jonathan Wakely <jwakely@redhat.com>
    
    libstdc++-v3/ChangeLog:
    
            * include/experimental/simd: Do not define anything pre-C++17.
    
    (cherry picked from commit 36adced3b6b7cae17d7b42e4573bd0f4194b1f70)

Diff:
---
 libstdc++-v3/include/experimental/simd | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/libstdc++-v3/include/experimental/simd b/libstdc++-v3/include/experimental/simd
index da2d0479cf3..beccbc14fa5 100644
--- a/libstdc++-v3/include/experimental/simd
+++ b/libstdc++-v3/include/experimental/simd
@@ -33,6 +33,8 @@
 #ifndef _GLIBCXX_EXPERIMENTAL_SIMD
 #define _GLIBCXX_EXPERIMENTAL_SIMD
 
+#if __cplusplus >= 201703L
+
 #define __cpp_lib_experimental_parallel_simd 201803
 
 #pragma GCC diagnostic push
@@ -66,5 +68,6 @@
 
 #pragma GCC diagnostic pop
 
+#endif // C++17
 #endif // _GLIBCXX_EXPERIMENTAL_SIMD
 // vim: ft=cpp


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

only message in thread, other threads:[~2021-07-15 19:53 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-07-15 19:53 [gcc r11-8757] libstdc++: Make <experimental/simd> depend on C++17 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).