projects
/
gcc.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3a4a925
)
libstdc++: Remove condition around friend declaration (PR 96382)
author
Jonathan Wakely
<jwakely@redhat.com>
Fri, 31 Jul 2020 18:55:28 +0000
(19:55 +0100)
committer
Jonathan Wakely
<jwakely@redhat.com>
Fri, 31 Jul 2020 18:55:46 +0000
(19:55 +0100)
libstdc++-v3/ChangeLog:
PR libstdc++/96382
* include/bits/stl_iterator.h (reverse_iterator): Friend
declaration should not depend on __cplusplus.
libstdc++-v3/include/bits/stl_iterator.h
patch
|
blob
|
history
diff --git
a/libstdc++-v3/include/bits/stl_iterator.h
b/libstdc++-v3/include/bits/stl_iterator.h
index 60bb40a659f3c8d6f2f57e53be29b4e3fee93fe7..08e25d842dd4ef32ca2f77c9a3454202e07f7b7c 100644
(file)
--- 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