From f280691a88f4c88c4861638ef19e2f190c73ff74 Mon Sep 17 00:00:00 2001 From: paolo Date: Mon, 17 Feb 2003 20:07:48 +0000 Subject: 2003-02-17 Paolo Carlini PR libstdc++/9580 * include/std/std_fstream.h: Declare underflow and uflow specializations, change generic definitions to do nothing. * src/fstream.cc: Add underflow and uflow specializations. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@63008 138bc75d-0d04-0410-961f-82ee72b054a4 --- libstdc++-v3/src/fstream.cc | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) (limited to 'libstdc++-v3/src') diff --git a/libstdc++-v3/src/fstream.cc b/libstdc++-v3/src/fstream.cc index be711339b72..944bae27c38 100644 --- a/libstdc++-v3/src/fstream.cc +++ b/libstdc++-v3/src/fstream.cc @@ -100,6 +100,16 @@ namespace std return __ret; } + template<> + basic_filebuf::int_type + basic_filebuf::underflow() + { return _M_underflow_common(false); } + + template<> + basic_filebuf::int_type + basic_filebuf::uflow() + { return _M_underflow_common(true); } + #ifdef _GLIBCPP_USE_WCHAR_T template<> basic_filebuf::int_type @@ -189,5 +199,15 @@ namespace std _M_last_overflowed = false; return __ret; } + + template<> + basic_filebuf::int_type + basic_filebuf::underflow() + { return _M_underflow_common(false); } + + template<> + basic_filebuf::int_type + basic_filebuf::uflow() + { return _M_underflow_common(true); } #endif } // namespace std -- cgit v1.2.1