diff options
author | Mark Mitchell <mark@codesourcery.com> | 2000-08-17 20:13:47 +0000 |
---|---|---|
committer | Mark Mitchell <mmitchel@gcc.gnu.org> | 2000-08-17 20:13:47 +0000 |
commit | 1492cacbf99161cbd34d92ae575b5e2de9a63fe7 (patch) | |
tree | 3f801d87981143ab6a5b1b5247717f6fe9e123cf | |
parent | dd69c71bf51b33416abfe7459315ff7cad8b95e3 (diff) | |
download | gcc-1492cacbf99161cbd34d92ae575b5e2de9a63fe7.zip gcc-1492cacbf99161cbd34d92ae575b5e2de9a63fe7.tar.gz gcc-1492cacbf99161cbd34d92ae575b5e2de9a63fe7.tar.bz2 |
localefwd.h (std::locale): Use explicit `class' specified when declaring friends.
* bits/localefwd.h (std::locale): Use explicit `class' specified
when declaring friends.
* bits/std_fstream.h (std::basic_filebuf): Likewise.
From-SVN: r35767
-rw-r--r-- | libstdc++-v3/ChangeLog | 6 | ||||
-rw-r--r-- | libstdc++-v3/bits/localefwd.h | 2 | ||||
-rw-r--r-- | libstdc++-v3/bits/std_fstream.h | 2 |
3 files changed, 8 insertions, 2 deletions
diff --git a/libstdc++-v3/ChangeLog b/libstdc++-v3/ChangeLog index 6b60a5a..d104533f 100644 --- a/libstdc++-v3/ChangeLog +++ b/libstdc++-v3/ChangeLog @@ -1,3 +1,9 @@ +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. + 2000-08-16 Alexandre Oliva <aoliva@redhat.com> * src/Makefile.am (libstdc++.INC): Renamed from INCLUDES. diff --git a/libstdc++-v3/bits/localefwd.h b/libstdc++-v3/bits/localefwd.h index ceb376c..719ad02 100644 --- a/libstdc++-v3/bits/localefwd.h +++ b/libstdc++-v3/bits/localefwd.h @@ -210,7 +210,7 @@ namespace std { // Forwrd decls and friends: class _Impl; - friend _Impl; + friend class _Impl; template<typename _Facet> friend const _Facet& diff --git a/libstdc++-v3/bits/std_fstream.h b/libstdc++-v3/bits/std_fstream.h index d745ee9..4cafb2d 100644 --- a/libstdc++-v3/bits/std_fstream.h +++ b/libstdc++-v3/bits/std_fstream.h @@ -61,7 +61,7 @@ namespace std { typedef codecvt<char_type, char, __state_type> __codecvt_type; typedef typename __codecvt_type::result __res_type; - friend ios_base; // For sync_with_stdio. + friend class ios_base; // For sync_with_stdio. private: // Data Members: |