From: Jonathan Wakely Date: Fri, 31 Jul 2020 18:55:28 +0000 (+0100) Subject: libstdc++: Remove condition around friend declaration (PR 96382) X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b59807a09e2734e327311b7ee07764494b7864d7;p=thirdparty%2Fgcc.git 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 60bb40a659f3..08e25d842dd4 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 friend class reverse_iterator; -#endif #if __cpp_lib_concepts // _GLIBCXX_RESOLVE_LIB_DEFECTS