]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
iomanip.h: Use new friend <> syntax.
authorMark Mitchell <mmitchell@usa.net>
Sun, 28 Sep 1997 19:18:16 +0000 (19:18 +0000)
committerJason Merrill <jason@gcc.gnu.org>
Sun, 28 Sep 1997 19:18:16 +0000 (15:18 -0400)
Sun Sep 28 12:09:04 1997  Mark Mitchell  <mmitchell@usa.net>

        * iomanip.h: Use new friend <> syntax.

From-SVN: r15775

libio/ChangeLog
libio/iomanip.h

index 384d4ef05ed9cfb75c9aafdb137f29bbca2adb81..557efbd65a3e7d5b7c14e8dbbf5e976dd445dc90 100644 (file)
@@ -1,3 +1,7 @@
+Sun Sep 28 12:09:04 1997  Mark Mitchell  <mmitchell@usa.net>
+
+        * iomanip.h: Use new friend <> syntax.
+
 Sun Sep 28 12:04:21 1997  Jason Merrill  <jason@yorick.cygnus.com>
 
        * libio.h: Don't use _IO_LOCK_T if it's not defined.
index fe1156569b47a11d3e5545be69da6b6610076efc..69574c1dd2d5f1af5ef0e6177b330ecb85931f3b 100644 (file)
@@ -50,6 +50,11 @@ public:
       { return smanip<TP>(_f, a); }
 };
 
+template<class TP>
+inline istream& operator>>(istream& i, const smanip<TP>& m);
+template<class TP>
+inline ostream& operator<<(ostream& o, const smanip<TP>& m);
+
 template <class TP> class smanip {
     ios& (*_f)(ios&, TP);
     TP _a;
@@ -57,9 +62,9 @@ public:
     smanip(ios& (*f)(ios&, TP), TP a) : _f(f), _a(a) {}
     //
     friend 
-      istream& operator>>(istream& i, const smanip<TP>& m);
+      istream& operator>> <>(istream& i, const smanip<TP>& m);
     friend
-      ostream& operator<<(ostream& o, const smanip<TP>& m);
+      ostream& operator<< <>(ostream& o, const smanip<TP>& m);
 };
 
 #ifdef __GNUG__