]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
libstdc++: Remove unused alias template in std::optional
authorJonathan Wakely <jwakely@redhat.com>
Thu, 12 Sep 2024 09:55:23 +0000 (10:55 +0100)
committerJonathan Wakely <redi@gcc.gnu.org>
Thu, 12 Sep 2024 19:42:48 +0000 (20:42 +0100)
I added this __is_bool alias template in r15-2309-g6d86486292acbe but
it isn't actually used so can be removed.

libstdc++-v3/ChangeLog:

* include/std/optional (__is_bool): Remove.

libstdc++-v3/include/std/optional

index 933a5b15e569eb48c39964b632b879ea8a715054..6a8e76f60e3a636918b6c4427ad0d01259507d2a 100644 (file)
@@ -850,8 +850,6 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION
        using __not_self = __not_<is_same<optional, __remove_cvref_t<_Up>>>;
       template<typename _Up>
        using __not_tag = __not_<is_same<in_place_t, __remove_cvref_t<_Up>>>;
-      template<typename _Up>
-       using __is_bool = is_same<remove_cv_t<_Up>, bool>;
       template<typename... _Cond>
        using _Requires = enable_if_t<__and_v<_Cond...>, bool>;
 #endif