mirror of git://gcc.gnu.org/git/gcc.git
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
This commit is contained in:
parent
b3650d40fa
commit
134a6f7b10
|
|
@ -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>
|
2019-01-11 Jonathan Wakely <jwakely@redhat.com>
|
||||||
|
|
||||||
PR libstdc++/88802
|
PR libstdc++/88802
|
||||||
|
|
|
||||||
|
|
@ -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 @@
|
||||||
|
|
||||||
#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
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue