]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
libstdc++: Remove redundant partial specialization in _Nth_type
authorFeng Jisen <J1senn@outlook.com>
Fri, 3 Nov 2023 16:33:44 +0000 (16:33 +0000)
committerJonathan Wakely <jwakely@redhat.com>
Wed, 8 Nov 2023 13:16:29 +0000 (13:16 +0000)
libstdc++-v3/ChangeLog:

* include/bits/utility.h (_Nth_type): Remove redundant partial
specialization.

(cherry picked from commit ada871cfadd3f4960b4435f6f7f07a5aca1887d3)

libstdc++-v3/include/bits/utility.h

index 714e2c026801a6ba40d7d85a72a6f1ca04f4ad1b..d7385ed72fdec71f9772435f59430ee6ba15177c 100644 (file)
@@ -250,10 +250,6 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION
     { };
 
 #if ! __cpp_concepts // Need additional specializations to avoid ambiguities.
-  template<typename _Tp0, typename _Tp1, typename... _Rest>
-    struct _Nth_type<0, _Tp0, _Tp1, _Rest...>
-    { using type = _Tp0; };
-
   template<typename _Tp0, typename _Tp1, typename _Tp2, typename... _Rest>
     struct _Nth_type<0, _Tp0, _Tp1, _Tp2, _Rest...>
     { using type = _Tp0; };