libstdc++-v3 PATCH: Fix minor errors

Mark Mitchell mark@codesourcery.com
Thu Aug 17 13:14:00 GMT 2000


There were a couple of places where a `class' specifier was omitted.
Fixed thusly.

Benjamin, if I should forward this change to some other list, too,
please let me know.

Thanks,

--
Mark Mitchell                   mark@codesourcery.com
CodeSourcery, LLC               http://www.codesourcery.com

2000-08-17  Mark Mitchell  <mark@codesourcery.com>

	* bits/localefwd.h (std::locale): Use explicit `class' specified
	when declaring friends.
	* bits/std_fstream.h (std::basic_filebuf): Likewise.

Index: bits/localefwd.h
===================================================================
RCS file: /cvs/gcc/egcs/libstdc++-v3/bits/localefwd.h,v
retrieving revision 1.2
diff -c -p -r1.2 localefwd.h
*** localefwd.h	2000/07/21 00:06:49	1.2
--- localefwd.h	2000/08/17 20:11:57
*************** namespace std
*** 210,216 ****
    {
      // Forwrd decls and friends:
      class _Impl;
!     friend _Impl;
  
      template<typename _Facet>
        friend const _Facet& 
--- 210,216 ----
    {
      // Forwrd decls and friends:
      class _Impl;
!     friend class _Impl;
  
      template<typename _Facet>
        friend const _Facet& 
Index: bits/std_fstream.h
===================================================================
RCS file: /cvs/gcc/egcs/libstdc++-v3/bits/std_fstream.h,v
retrieving revision 1.12
diff -c -p -r1.12 std_fstream.h
*** std_fstream.h	2000/08/14 19:46:43	1.12
--- std_fstream.h	2000/08/17 20:11:57
*************** namespace std {
*** 61,67 ****
        typedef codecvt<char_type, char, __state_type>    __codecvt_type;
        typedef typename __codecvt_type::result 	        __res_type;
        
!       friend ios_base; // For sync_with_stdio.
  
      private:
        // Data Members:
--- 61,67 ----
        typedef codecvt<char_type, char, __state_type>    __codecvt_type;
        typedef typename __codecvt_type::result 	        __res_type;
        
!       friend class ios_base; // For sync_with_stdio.
  
      private:
        // Data Members:


More information about the Gcc-patches mailing list