libstdc++: Use __cpp_concepts instead of custom macro [PR103891]
authorJonathan Wakely <jwakely@redhat.com>
Mon, 14 Feb 2022 12:46:10 +0000 (12:46 +0000)
committerJonathan Wakely <jwakely@redhat.com>
Mon, 14 Feb 2022 13:03:31 +0000 (13:03 +0000)
commit164a761a9f4798dc69ecab80097807636dc17d61
tree56fcdebdec88734259b5fe23a5ba564993aac953
parent220d85fdf0b5d61e212289fd6ec763980700c572
libstdc++: Use __cpp_concepts instead of custom macro [PR103891]

With the new value of __cpp_concepts required by P2493, we can test
whether the compiler supports conditionally trivial special members.
This allows us to remove the workaround that disables fully-constexpr
std::variant for Clang. Now it should work for non-GCC compilers (such
as future releases of Clang) that support conditionally trivial
destructors and define the new value of __cpp_concepts.

libstdc++-v3/ChangeLog:

PR libstdc++/103891
* include/bits/c++config (_GLIBCXX_HAVE_COND_TRIVIAL_SPECIAL_MEMBERS):
Remove.
* include/std/variant: Check feature test macros instead.
* include/std/version: Likewise.
libstdc++-v3/include/bits/c++config
libstdc++-v3/include/std/variant
libstdc++-v3/include/std/version