aboutsummaryrefslogtreecommitdiff
path: root/libio/iomanip.h
diff options
context:
space:
mode:
authorOleg Krivosheev <kriol@fnal.gov>1997-11-11 09:43:06 +0000
committerJason Merrill <jason@gcc.gnu.org>1997-11-11 04:43:06 -0500
commita0e07e85ee694eb3a6998b057d75835517f444cb (patch)
tree5608d9e0b2a023bac4bf723407aab4b92fa29bda /libio/iomanip.h
parent00d3396fdbabe68ad2b7c64ac28c5608628c75ad (diff)
iomanip.h: Fix guiding decls.
Tue Nov 11 01:40:17 1997 Oleg Krivosheev <kriol@fnal.gov> * iomanip.h: Fix guiding decls. From-SVN: r16428
Diffstat (limited to 'libio/iomanip.h')
-rw-r--r--libio/iomanip.h10
1 files changed, 8 insertions, 2 deletions
diff --git a/libio/iomanip.h b/libio/iomanip.h
index 69574c1dd2d..d80e98ed604 100644
--- a/libio/iomanip.h
+++ b/libio/iomanip.h
@@ -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>