diff options
author | jason <jason@138bc75d-0d04-0410-961f-82ee72b054a4> | 1997-09-28 19:18:16 +0000 |
---|---|---|
committer | jason <jason@138bc75d-0d04-0410-961f-82ee72b054a4> | 1997-09-28 19:18:16 +0000 |
commit | 21e1e45b03cbacee04f7305e09cd61dafbba3cdd (patch) | |
tree | 3168c2ae17f8f4ab53f9add78f10c47184795db5 /libio | |
parent | b1cfe2be12a521793bc35e549f4cc3caeb81da8b (diff) | |
download | ppe42-gcc-21e1e45b03cbacee04f7305e09cd61dafbba3cdd.tar.gz ppe42-gcc-21e1e45b03cbacee04f7305e09cd61dafbba3cdd.zip |
Sun Sep 28 12:09:04 1997 Mark Mitchell <mmitchell@usa.net>
* iomanip.h: Use new friend <> syntax.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@15775 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libio')
-rw-r--r-- | libio/ChangeLog | 4 | ||||
-rw-r--r-- | libio/iomanip.h | 9 |
2 files changed, 11 insertions, 2 deletions
diff --git a/libio/ChangeLog b/libio/ChangeLog index 384d4ef05ed..557efbd65a3 100644 --- a/libio/ChangeLog +++ b/libio/ChangeLog @@ -1,3 +1,7 @@ +Sun Sep 28 12:09:04 1997 Mark Mitchell <mmitchell@usa.net> + + * iomanip.h: Use new friend <> syntax. + Sun Sep 28 12:04:21 1997 Jason Merrill <jason@yorick.cygnus.com> * libio.h: Don't use _IO_LOCK_T if it's not defined. 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__ |