aboutsummaryrefslogtreecommitdiff
path: root/libstdc++-v3/include/std
diff options
context:
space:
mode:
authorJonathan Wakely <jwakely@redhat.com>2023-08-08 22:07:29 +0100
committerJonathan Wakely <jwakely@redhat.com>2023-08-09 15:19:15 +0100
commit5b46eacc4949ec62ee718b172cf8eb056ff27654 (patch)
tree3d57c760a58339932e345f8f5587d52fa4dd637c /libstdc++-v3/include/std
parentaf89c7792d722b7c7c2568bd4dfd9c2b34eeb4f9 (diff)
downloadgcc-5b46eacc4949ec62ee718b172cf8eb056ff27654.zip
gcc-5b46eacc4949ec62ee718b172cf8eb056ff27654.tar.gz
gcc-5b46eacc4949ec62ee718b172cf8eb056ff27654.tar.bz2
libstdc++: Fix some -Wmismatched-tags warnings
libstdc++-v3/ChangeLog: * include/bits/shared_ptr_atomic.h (atomic): Change class-head to struct. * include/bits/stl_tree.h (_Rb_tree_merge_helper): Change class-head to struct in friend declaration. * include/std/chrono (tzdb_list::_Node): Likewise. * include/std/future (_Task_state_base, _Task_state): Likewise. * include/std/scoped_allocator (__inner_type_impl): Likewise. * include/std/valarray (_BinClos, _SClos, _GClos, _IClos) (_ValFunClos, _RefFunClos): Change class-head to struct.
Diffstat (limited to 'libstdc++-v3/include/std')
-rw-r--r--libstdc++-v3/include/std/chrono6
-rw-r--r--libstdc++-v3/include/std/future4
-rw-r--r--libstdc++-v3/include/std/scoped_allocator4
-rw-r--r--libstdc++-v3/include/std/valarray12
4 files changed, 13 insertions, 13 deletions
diff --git a/libstdc++-v3/include/std/chrono b/libstdc++-v3/include/std/chrono
index 9b16048..e63d6c7 100644
--- a/libstdc++-v3/include/std/chrono
+++ b/libstdc++-v3/include/std/chrono
@@ -2792,7 +2792,7 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION
private:
friend const tzdb& reload_tzdb();
- friend class tzdb_list::_Node;
+ friend struct tzdb_list::_Node;
explicit time_zone_link(nullptr_t) { }
@@ -2896,7 +2896,7 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION
private:
explicit leap_second(seconds::rep __s) : _M_s(__s) { }
- friend class tzdb_list::_Node;
+ friend struct tzdb_list::_Node;
friend const tzdb& reload_tzdb();
@@ -2937,7 +2937,7 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION
private:
friend const tzdb& reload_tzdb();
friend class time_zone;
- friend class tzdb_list::_Node;
+ friend struct tzdb_list::_Node;
};
tzdb_list& get_tzdb_list();
diff --git a/libstdc++-v3/include/std/future b/libstdc++-v3/include/std/future
index b94ae0b..c46ead7 100644
--- a/libstdc++-v3/include/std/future
+++ b/libstdc++-v3/include/std/future
@@ -625,10 +625,10 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION
class _Async_state_impl;
template<typename _Signature>
- class _Task_state_base;
+ struct _Task_state_base;
template<typename _Fn, typename _Alloc, typename _Signature>
- class _Task_state;
+ struct _Task_state;
template<typename _Res_ptr, typename _Fn,
typename _Res = typename _Res_ptr::element_type::result_type>
diff --git a/libstdc++-v3/include/std/scoped_allocator b/libstdc++-v3/include/std/scoped_allocator
index cb15c8c..8af432a 100644
--- a/libstdc++-v3/include/std/scoped_allocator
+++ b/libstdc++-v3/include/std/scoped_allocator
@@ -164,7 +164,7 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION
{ return _M_inner == __other._M_inner; }
private:
- template<typename...> friend class __inner_type_impl;
+ template<typename...> friend struct __inner_type_impl;
template<typename, typename...> friend class scoped_allocator_adaptor;
__type _M_inner;
@@ -186,7 +186,7 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION
friend class scoped_allocator_adaptor;
template<typename...>
- friend class __inner_type_impl;
+ friend struct __inner_type_impl;
tuple<const _OuterAlloc&, const _InnerAllocs&...>
_M_tie() const noexcept
diff --git a/libstdc++-v3/include/std/valarray b/libstdc++-v3/include/std/valarray
index 6bd23e0..f172db6 100644
--- a/libstdc++-v3/include/std/valarray
+++ b/libstdc++-v3/include/std/valarray
@@ -62,22 +62,22 @@ namespace __detail
template<class, class> class _Meta1,
template<class, class> class _Meta2,
class _Dom1, class _Dom2>
- class _BinClos;
+ struct _BinClos;
template<template<class, class> class _Meta, class _Dom>
- class _SClos;
+ struct _SClos;
template<template<class, class> class _Meta, class _Dom>
- class _GClos;
+ struct _GClos;
template<template<class, class> class _Meta, class _Dom>
- class _IClos;
+ struct _IClos;
template<template<class, class> class _Meta, class _Dom>
- class _ValFunClos;
+ struct _ValFunClos;
template<template<class, class> class _Meta, class _Dom>
- class _RefFunClos;
+ struct _RefFunClos;
} // namespace __detail
using __detail::_UnClos;