libstdc++: Do not use __is_convertible unconditionally [PR113241]
commit57fa5b60bbbf8038b8a699d2bcebd2a9b2e29aa4
authorJonathan Wakely <jwakely@redhat.com>
Fri, 5 Jan 2024 12:03:22 +0000 (5 12:03 +0000)
committerJonathan Wakely <jwakely@redhat.com>
Fri, 5 Jan 2024 13:57:05 +0000 (5 13:57 +0000)
tree93bee231e7b7d2063e6fe2497c3364b053006e2a
parent29abd09a744970bf2b93d078bad9946899ef2b05
libstdc++: Do not use __is_convertible unconditionally [PR113241]

The new __is_convertible built-in should only be used after checking
that it's supported.

libstdc++-v3/ChangeLog:

PR libstdc++/113241
* include/std/type_traits (is_convertible_v): Guard use of
built-in with preprocessor check.
libstdc++-v3/include/std/type_traits