Commit 134a6f7b by Jakub Jelinek Committed by Jakub Jelinek

type_traits (__cpp_lib_is_constant_evaluated): Define.

	* include/std/type_traits (__cpp_lib_is_constant_evaluated): Define.
	* include/std/version (__cpp_lib_is_constant_evaluated): Define.

From-SVN: r267847
parent b3650d40
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> 2019-01-11 Jonathan Wakely <jwakely@redhat.com>
PR libstdc++/88802 PR libstdc++/88802
......
...@@ -3030,6 +3030,9 @@ template <typename _From, typename _To> ...@@ -3030,6 +3030,9 @@ template <typename _From, typename _To>
using unwrap_ref_decay_t = typename unwrap_ref_decay<_Tp>::type; using unwrap_ref_decay_t = typename unwrap_ref_decay<_Tp>::type;
#ifdef _GLIBCXX_HAVE_BUILTIN_IS_CONSTANT_EVALUATED #ifdef _GLIBCXX_HAVE_BUILTIN_IS_CONSTANT_EVALUATED
#define __cpp_lib_is_constant_evaluated 201811L
constexpr inline bool constexpr inline bool
is_constant_evaluated() noexcept is_constant_evaluated() noexcept
{ return __builtin_is_constant_evaluated(); } { return __builtin_is_constant_evaluated(); }
......
...@@ -142,6 +142,9 @@ ...@@ -142,6 +142,9 @@
#if __cplusplus > 201703L #if __cplusplus > 201703L
// c++2a // 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 #define __cpp_lib_list_remove_return_type 201806L
#endif // C++2a #endif // C++2a
#endif // C++17 #endif // C++17
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment