type_traits (__cpp_lib_is_constant_evaluated): Define.
authorJakub Jelinek <jakub@redhat.com>
Fri, 11 Jan 2019 16:01:23 +0000 (17:01 +0100)
committerJakub Jelinek <jakub@gcc.gnu.org>
Fri, 11 Jan 2019 16:01:23 +0000 (17:01 +0100)
* include/std/type_traits (__cpp_lib_is_constant_evaluated): Define.
* include/std/version (__cpp_lib_is_constant_evaluated): Define.

From-SVN: r267847

libstdc++-v3/ChangeLog
libstdc++-v3/include/std/type_traits
libstdc++-v3/include/std/version

index 4c2470c63269514cc223ce6e1049921c05f469b6..af7cf3eb389cc8719d1ec8e96a958dd09f9a5153 100644 (file)
@@ -1,3 +1,8 @@
+2019-01-11  Jakub Jelinek  <jakub@redhat.com>
+
+       * include/std/type_traits (__cpp_lib_is_constant_evaluated): Define.
+       * include/std/version (__cpp_lib_is_constant_evaluated): Define.
+
 2019-01-11  Jonathan Wakely  <jwakely@redhat.com>
 
        PR libstdc++/88802
index 275a7f401fa02ea7e5d6c3298b383940bff71057..2df89acfd21ec72e1c6e3c5e5db76a1f8e01e6ca 100644 (file)
@@ -3030,6 +3030,9 @@ template <typename _From, typename _To>
     using unwrap_ref_decay_t = typename unwrap_ref_decay<_Tp>::type;
 
 #ifdef _GLIBCXX_HAVE_BUILTIN_IS_CONSTANT_EVALUATED
+
+#define __cpp_lib_is_constant_evaluated 201811L        
+
   constexpr inline bool
   is_constant_evaluated() noexcept
   { return __builtin_is_constant_evaluated(); }
index e11ae3a688a72427597d3ce2f41be8f047e36a49..903b75b483a3c8d5b4297e441f482315d4c9b113 100644 (file)
 
 #if __cplusplus > 201703L
 // c++2a
+#ifdef _GLIBCXX_HAVE_BUILTIN_IS_CONSTANT_EVALUATED
+# define __cpp_lib_is_constant_evaluated 201811L
+#endif
 #define __cpp_lib_list_remove_return_type 201806L
 #endif // C++2a
 #endif // C++17