aboutsummaryrefslogtreecommitdiff
path: root/libio/iomanip.h
diff options
context:
space:
mode:
authorMark Mitchell <mmitchell@usa.net>1997-09-28 19:18:16 +0000
committerJason Merrill <jason@gcc.gnu.org>1997-09-28 15:18:16 -0400
commit920253a3bc1649fb4a0f5f5f48e57d92d4839190 (patch)
tree3168c2ae17f8f4ab53f9add78f10c47184795db5 /libio/iomanip.h
parent386b8a85a66471540a1a75ff8f4138fc5ace6a63 (diff)
downloadgcc-920253a3bc1649fb4a0f5f5f48e57d92d4839190.zip
gcc-920253a3bc1649fb4a0f5f5f48e57d92d4839190.tar.gz
gcc-920253a3bc1649fb4a0f5f5f48e57d92d4839190.tar.bz2
iomanip.h: Use new friend <> syntax.
Sun Sep 28 12:09:04 1997 Mark Mitchell <mmitchell@usa.net> * iomanip.h: Use new friend <> syntax. From-SVN: r15775
Diffstat (limited to 'libio/iomanip.h')
-rw-r--r--libio/iomanip.h9
1 files changed, 7 insertions, 2 deletions
diff --git a/libio/iomanip.h b/libio/iomanip.h
index fe11565..69574c1 100644
--- a/libio/iomanip.h
+++ b/libio/iomanip.h
@@ -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__