diff --git a/include/bitset b/include/bitset index 55b55759..0c40b9b7 100644 --- a/include/bitset +++ b/include/bitset @@ -159,7 +159,7 @@ protected: friend class __bit_const_reference<__bitset>; friend class __bit_iterator<__bitset, false>; friend class __bit_iterator<__bitset, true>; - friend class __bit_array<__bitset>; + friend struct __bit_array<__bitset>; __storage_type __first_[_N_words]; @@ -435,7 +435,7 @@ protected: friend class __bit_const_reference<__bitset>; friend class __bit_iterator<__bitset, false>; friend class __bit_iterator<__bitset, true>; - friend class __bit_array<__bitset>; + friend struct __bit_array<__bitset>; __storage_type __first_; diff --git a/include/vector b/include/vector index 04a23ab7..07859c94 100644 --- a/include/vector +++ b/include/vector @@ -2318,7 +2318,7 @@ private: friend class __bit_const_reference; friend class __bit_iterator; friend class __bit_iterator; - friend class __bit_array; + friend struct __bit_array; friend struct _LIBCPP_VISIBLE hash; };