From: Jonathan Wakely Date: Sat, 23 Mar 2024 11:11:17 +0000 (+0000) Subject: libstdc++: Remove unused helper traits X-Git-Tag: basepoints/gcc-16~6897 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=4436889eb4a8e293c88cae8e6a6330e7e23857d7;p=thirdparty%2Fgcc.git libstdc++: Remove unused helper traits These are not used anywhere, we have more efficient variable templates for them instead. They're not documented as extensions, and are easy for users to write if they need them. libstdc++-v3/ChangeLog: * include/bits/utility.h (__is_in_place_type): Remove. * include/std/variant (__is_in_place_tag): Remove. --- diff --git a/libstdc++-v3/include/bits/utility.h b/libstdc++-v3/include/bits/utility.h index 44c74333e92..751ff7b9a27 100644 --- a/libstdc++-v3/include/bits/utility.h +++ b/libstdc++-v3/include/bits/utility.h @@ -220,9 +220,6 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION template inline constexpr bool __is_in_place_type_v> = true; - template - using __is_in_place_type = bool_constant<__is_in_place_type_v<_Tp>>; - template inline constexpr bool __is_in_place_index_v = false; diff --git a/libstdc++-v3/include/std/variant b/libstdc++-v3/include/std/variant index d0f7bd0242f..12108d07f0b 100644 --- a/libstdc++-v3/include/std/variant +++ b/libstdc++-v3/include/std/variant @@ -1488,13 +1488,6 @@ namespace __detail::__variant using _Traits = __detail::__variant::_Traits<_Types...>; - template - struct __is_in_place_tag : false_type { }; - template - struct __is_in_place_tag> : true_type { }; - template - struct __is_in_place_tag> : true_type { }; - template static constexpr bool __not_in_place_tag = !__is_in_place_type_v<__remove_cvref_t<_Tp>>