Commit a0e07e85 by Oleg Krivosheev Committed by Jason Merrill

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
parent 00d3396f
Tue Nov 11 01:40:17 1997 Oleg Krivosheev <kriol@fnal.gov>
* iomanip.h: Fix guiding decls.
Wed Oct 29 23:01:47 1997 Jason Merrill <jason@yorick.cygnus.com> Wed Oct 29 23:01:47 1997 Jason Merrill <jason@yorick.cygnus.com>
* gen-params: Override NULL. * gen-params: Override NULL.
......
...@@ -102,6 +102,9 @@ public: ...@@ -102,6 +102,9 @@ public:
{ return imanip<TP>(_f, a); } { return imanip<TP>(_f, a); }
}; };
template <class TP>
inline istream& operator>>(istream&, const imanip<TP>&);
template <class TP> class imanip { template <class TP> class imanip {
istream& (*_f)(istream&, TP); istream& (*_f)(istream&, TP);
TP _a; TP _a;
...@@ -109,7 +112,7 @@ public: ...@@ -109,7 +112,7 @@ public:
imanip(istream& (*f)(istream&, TP), TP a) : _f(f), _a(a) {} imanip(istream& (*f)(istream&, TP), TP a) : _f(f), _a(a) {}
// //
friend friend
istream& operator>>(istream& i, const imanip<TP>& m); istream& operator>> <>(istream& i, const imanip<TP>& m);
}; };
template <class TP> template <class TP>
...@@ -131,6 +134,9 @@ public: ...@@ -131,6 +134,9 @@ public:
{ return omanip<TP>(_f, a); } { return omanip<TP>(_f, a); }
}; };
template <class TP>
inline ostream& operator<<(ostream&, const omanip<TP>&);
template <class TP> class omanip { template <class TP> class omanip {
ostream& (*_f)(ostream&, TP); ostream& (*_f)(ostream&, TP);
TP _a; TP _a;
...@@ -138,7 +144,7 @@ public: ...@@ -138,7 +144,7 @@ public:
omanip(ostream& (*f)(ostream&, TP), TP a) : _f(f), _a(a) {} omanip(ostream& (*f)(ostream&, TP), TP a) : _f(f), _a(a) {}
// //
friend friend
ostream& operator<<(ostream& o, const omanip<TP>& m); ostream& operator<< <>(ostream& o, const omanip<TP>& m);
}; };
template <class TP> template <class TP>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment