]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
re PR libstdc++/9269 (libstdc++ headers: explicit specialization of function must...
authorBenjamin Kosnik <bkoz@redhat.com>
Sat, 11 Jan 2003 01:54:19 +0000 (01:54 +0000)
committerBenjamin Kosnik <bkoz@gcc.gnu.org>
Sat, 11 Jan 2003 01:54:19 +0000 (01:54 +0000)
2003-01-10  Benjamin Kosnik  <bkoz@redhat.com>
    Sysoltsev Slawa  <Vyatcheslav.Sysoltsev@intel.com>

PR libstdc++/9269
* include/std/std_fstream.h (basic_filebuf::uflow): Declare.
(basic_filebuf::underflow): Declare.
Move definitions.

Co-Authored-By: Sysoltsev Slawa <Vyatcheslav.Sysoltsev@intel.com>
From-SVN: r61188

libstdc++-v3/ChangeLog
libstdc++-v3/include/std/std_fstream.h

index f6f36e9174a3da14ceea692deeb53e593e564ef9..fe832fa59e6856552b14695f18bfb007588f6355 100644 (file)
@@ -1,3 +1,11 @@
+2003-01-10  Benjamin Kosnik  <bkoz@redhat.com>
+           Sysoltsev Slawa  <Vyatcheslav.Sysoltsev@intel.com>
+
+       PR libstdc++/9269
+       * include/std/std_fstream.h (basic_filebuf::uflow): Declare.
+       (basic_filebuf::underflow): Declare.
+       Move definitions.
+
 2003-01-07  Benjamin Kosnik  <bkoz@redhat.com>
 
        PR libstdc++/8707
index c3861051d40b8bff745722521b78c35099559fda..838b99dc08bd8949243d3ec63823bc036347fce2 100644 (file)
@@ -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.