diff options
author | kan <kan@FreeBSD.org> | 2003-02-10 05:47:54 +0000 |
---|---|---|
committer | kan <kan@FreeBSD.org> | 2003-02-10 05:47:54 +0000 |
commit | 78fa66448c770aa99b6f69113061eb5d77581627 (patch) | |
tree | 548333fba089bbaa9f6f60f38860213a7f7ccf69 /contrib/libstdc++/include/std/std_fstream.h | |
parent | 793833d7a78bb624965885760593495e7079d705 (diff) | |
download | FreeBSD-src-78fa66448c770aa99b6f69113061eb5d77581627.zip FreeBSD-src-78fa66448c770aa99b6f69113061eb5d77581627.tar.gz |
Gcc 3.2.2-release C++ support bits.
Diffstat (limited to 'contrib/libstdc++/include/std/std_fstream.h')
-rw-r--r-- | contrib/libstdc++/include/std/std_fstream.h | 18 |
1 files changed, 15 insertions, 3 deletions
diff --git a/contrib/libstdc++/include/std/std_fstream.h b/contrib/libstdc++/include/std/std_fstream.h index c386105..838b99d 100644 --- a/contrib/libstdc++/include/std/std_fstream.h +++ b/contrib/libstdc++/include/std/std_fstream.h @@ -1,6 +1,6 @@ // File based streams -*- C++ -*- -// Copyright (C) 1997, 1998, 1999, 2000, 2001, 2002 +// Copyright (C) 1997, 1998, 1999, 2000, 2001, 2002, 2003 // Free Software Foundation, Inc. // // This file is part of the GNU ISO C++ Library. This library is free @@ -141,10 +141,10 @@ namespace std _M_underflow_common(bool __bump); virtual int_type - underflow() { return _M_underflow_common(false); } + underflow(); virtual int_type - uflow() { return _M_underflow_common(true); } + uflow(); virtual int_type pbackfail(int_type __c = _Traits::eof()); @@ -297,6 +297,18 @@ namespace std basic_filebuf<wchar_t>::_M_underflow_common(bool __bump); #endif + // Generic definitions. + template <typename _CharT, typename _Traits> + basic_filebuf<_CharT, _Traits>::int_type + basic_filebuf<_CharT, _Traits>::underflow() + { return _M_underflow_common(false); } + + template <typename _CharT, typename _Traits> + basic_filebuf<_CharT, _Traits>::int_type + basic_filebuf<_CharT, _Traits>::uflow() + { return _M_underflow_common(true); } + + // 27.8.1.5 Template class basic_ifstream /** * Derivation of general input streams, specific to files. |