OSDN Git Service

Don't make gperf depend upon libg++.
[pf3gnuchains/gcc-fork.git] / libio / iomanip.h
index 69574c1..d80e98e 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>