[prev in list] [next in list] [prev in thread] [next in thread]
List: gcc-patches
Subject: [committed] libstdc++: Remove condition around friend declaration (PR 96382)
From: Jonathan Wakely via Gcc-patches <gcc-patches () gcc ! gnu ! org>
Date: 2020-07-31 18:57:54
Message-ID: 20200731185754.GA1312395 () redhat ! com
[Download RAW message or body]
libstdc++-v3/ChangeLog:
PR libstdc++/96382
* include/bits/stl_iterator.h (reverse_iterator): Friend
declaration should not depend on __cplusplus.
Tested x86_64-linux, committed to trunk.
["patch.txt" (text/plain)]
commit 8abab28bb5c0cd80063518d47494cb6078767b89
Author: Jonathan Wakely <jwakely@redhat.com>
Date: Fri Jul 31 19:55:28 2020
libstdc++: Remove condition around friend declaration (PR 96382)
libstdc++-v3/ChangeLog:
PR libstdc++/96382
* include/bits/stl_iterator.h (reverse_iterator): Friend
declaration should not depend on __cplusplus.
diff --git a/libstdc++-v3/include/bits/stl_iterator.h b/libstdc++-v3/include/bits/stl_iterator.h
index 60bb40a659f..08e25d842dd 100644
--- a/libstdc++-v3/include/bits/stl_iterator.h
+++ b/libstdc++-v3/include/bits/stl_iterator.h
@@ -129,10 +129,8 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION
typename iterator_traits<_Iterator>::pointer,
typename iterator_traits<_Iterator>::reference>
{
-#if __cplusplus >= 201103L
template<typename _Iter>
friend class reverse_iterator;
-#endif
#if __cpp_lib_concepts
// _GLIBCXX_RESOLVE_LIB_DEFECTS
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic