summaryrefslogtreecommitdiffstats
path: root/libio/iomanip.h
diff options
context:
space:
mode:
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 fe1156569b4..69574c1dd2d 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__
OpenPOWER on IntegriCloud