]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
libstdc++: Add redundant 'typename' to std::projected
authorJonathan Wakely <jwakely@redhat.com>
Tue, 4 Jul 2023 14:29:35 +0000 (15:29 +0100)
committerJonathan Wakely <jwakely@redhat.com>
Wed, 5 Jul 2023 06:39:03 +0000 (07:39 +0100)
This is needed by Clang 15.

libstdc++-v3/ChangeLog:

* include/bits/iterator_concepts.h (projected): Add typename.

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

index 6802582a459d931ebe1cacafac744af6f2965697..e32e94dc9fc0f00a6116394c49905e23551d8510 100644 (file)
@@ -798,7 +798,7 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION
   /// [projected], projected
   template<indirectly_readable _Iter,
           indirectly_regular_unary_invocable<_Iter> _Proj>
-    using projected = __detail::__projected<_Iter, _Proj>::__type;
+    using projected = typename __detail::__projected<_Iter, _Proj>::__type;
 
   // [alg.req], common algorithm requirements