]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
iomanip.h: Fix guiding decls.
authorOleg Krivosheev <kriol@fnal.gov>
Tue, 11 Nov 1997 09:43:35 +0000 (09:43 +0000)
committerJason Merrill <jason@gcc.gnu.org>
Tue, 11 Nov 1997 09:43:35 +0000 (04:43 -0500)
Tue Nov 11 01:40:17 1997  Oleg Krivosheev <kriol@fnal.gov>

* iomanip.h: Fix guiding decls.

From-SVN: r16429

libio/ChangeLog
libio/iomanip.h

index ba7c23613e21bb2c4f157f9c0be59ff27f704ca2..c7ac8bc3918f109cff15a5253743069eae583373 100644 (file)
@@ -1,3 +1,7 @@
+Tue Nov 11 01:40:17 1997  Oleg Krivosheev <kriol@fnal.gov>
+
+       * iomanip.h: Fix guiding decls.
+
 Wed Oct 29 23:01:47 1997  Jason Merrill  <jason@yorick.cygnus.com>
 
        * gen-params: Override NULL.
index 69574c1dd2d5f1af5ef0e6177b330ecb85931f3b..d80e98ed604759e50242feb620be699a20b185ca 100644 (file)
@@ -102,6 +102,9 @@ public:
        { return imanip<TP>(_f, a); }
 };
 
+template <class TP>
+inline istream& operator>>(istream&, const imanip<TP>&);
+
 template <class TP> class imanip {
     istream& (*_f)(istream&, TP);
     TP _a;
@@ -109,7 +112,7 @@ public:
     imanip(istream& (*f)(istream&, TP), TP a) : _f(f), _a(a) {}
     //
     friend
-      istream& operator>>(istream& i, const imanip<TP>& m);
+      istream& operator>> <>(istream& i, const imanip<TP>& m);
 };
 
 template <class TP>
@@ -131,6 +134,9 @@ public:
       { return omanip<TP>(_f, a); }
 };
 
+template <class TP>
+inline ostream& operator<<(ostream&, const omanip<TP>&);
+
 template <class TP> class omanip {
     ostream& (*_f)(ostream&, TP);
     TP _a;
@@ -138,7 +144,7 @@ public:
     omanip(ostream& (*f)(ostream&, TP), TP a) : _f(f), _a(a) {}
     //
     friend
-      ostream& operator<<(ostream& o, const omanip<TP>& m);
+      ostream& operator<< <>(ostream& o, const omanip<TP>& m);
 };
 
 template <class TP>