]> git.ipfire.org Git - thirdparty/gcc.git/commit
libstdc++: Remove std::__is_pointer and std::__is_scalar [PR115497]
authorJonathan Wakely <jwakely@redhat.com>
Wed, 19 Jun 2024 16:26:37 +0000 (17:26 +0100)
committerJonathan Wakely <jwakely@redhat.com>
Fri, 21 Jun 2024 16:07:00 +0000 (17:07 +0100)
commit52a82359073653e312aaa5703f7e0ce339588961
tree1d827ecd1b7c4e4ee5e70dffc3dda31fc542a1a6
parent51cc77672add517123ef9ea45335b08442e8d57c
libstdc++: Remove std::__is_pointer and std::__is_scalar [PR115497]

This removes the std::__is_pointer and std::__is_scalar traits, as they
conflicts with a Clang built-in.

Although Clang has a hack to make the class templates work despite using
reserved names, removing these class templates will allow that hack to
be dropped at some future date.

libstdc++-v3/ChangeLog:

PR libstdc++/115497
* include/bits/cpp_type_traits.h (__is_pointer, __is_scalar):
Remove.
(__is_arithmetic): Do not use __is_pointer in the primary
template. Add partial specialization for pointers.
libstdc++-v3/include/bits/cpp_type_traits.h