From: Benjamin Kosnik Date: Sat, 11 Jan 2003 01:54:19 +0000 (+0000) Subject: re PR libstdc++/9269 (libstdc++ headers: explicit specialization of function must... X-Git-Tag: releases/gcc-3.2.2~118 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2fae2ccb012f348959b09002ce57add330555060;p=thirdparty%2Fgcc.git re PR libstdc++/9269 (libstdc++ headers: explicit specialization of function must precede its first use) 2003-01-10 Benjamin Kosnik Sysoltsev Slawa PR libstdc++/9269 * include/std/std_fstream.h (basic_filebuf::uflow): Declare. (basic_filebuf::underflow): Declare. Move definitions. Co-Authored-By: Sysoltsev Slawa From-SVN: r61188 --- diff --git a/libstdc++-v3/ChangeLog b/libstdc++-v3/ChangeLog index f6f36e9174a3..fe832fa59e68 100644 --- a/libstdc++-v3/ChangeLog +++ b/libstdc++-v3/ChangeLog @@ -1,3 +1,11 @@ +2003-01-10 Benjamin Kosnik + Sysoltsev Slawa + + PR libstdc++/9269 + * include/std/std_fstream.h (basic_filebuf::uflow): Declare. + (basic_filebuf::underflow): Declare. + Move definitions. + 2003-01-07 Benjamin Kosnik PR libstdc++/8707 diff --git a/libstdc++-v3/include/std/std_fstream.h b/libstdc++-v3/include/std/std_fstream.h index c3861051d40b..838b99dc08bd 100644 --- a/libstdc++-v3/include/std/std_fstream.h +++ b/libstdc++-v3/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::_M_underflow_common(bool __bump); #endif + // Generic definitions. + template + basic_filebuf<_CharT, _Traits>::int_type + basic_filebuf<_CharT, _Traits>::underflow() + { return _M_underflow_common(false); } + + template + 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.