From 920253a3bc1649fb4a0f5f5f48e57d92d4839190 Mon Sep 17 00:00:00 2001 From: Mark Mitchell Date: Sun, 28 Sep 1997 19:18:16 +0000 Subject: [PATCH] iomanip.h: Use new friend <> syntax. Sun Sep 28 12:09:04 1997 Mark Mitchell * iomanip.h: Use new friend <> syntax. From-SVN: r15775 --- libio/ChangeLog | 4 ++++ 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 + + * iomanip.h: Use new friend <> syntax. + Sun Sep 28 12:04:21 1997 Jason Merrill * 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(_f, a); } }; +template +inline istream& operator>>(istream& i, const smanip& m); +template +inline ostream& operator<<(ostream& o, const smanip& m); + template 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& m); + istream& operator>> <>(istream& i, const smanip& m); friend - ostream& operator<<(ostream& o, const smanip& m); + ostream& operator<< <>(ostream& o, const smanip& m); }; #ifdef __GNUG__