From a0e07e85ee694eb3a6998b057d75835517f444cb Mon Sep 17 00:00:00 2001 From: Oleg Krivosheev Date: Tue, 11 Nov 1997 09:43:06 +0000 Subject: iomanip.h: Fix guiding decls. Tue Nov 11 01:40:17 1997 Oleg Krivosheev * iomanip.h: Fix guiding decls. From-SVN: r16428 --- libio/ChangeLog | 4 ++++ libio/iomanip.h | 10 ++++++++-- 2 files changed, 12 insertions(+), 2 deletions(-) (limited to 'libio') diff --git a/libio/ChangeLog b/libio/ChangeLog index ba7c236..c7ac8bc 100644 --- a/libio/ChangeLog +++ b/libio/ChangeLog @@ -1,3 +1,7 @@ +Tue Nov 11 01:40:17 1997 Oleg Krivosheev + + * iomanip.h: Fix guiding decls. + Wed Oct 29 23:01:47 1997 Jason Merrill * gen-params: Override NULL. diff --git a/libio/iomanip.h b/libio/iomanip.h index 69574c1..d80e98e 100644 --- a/libio/iomanip.h +++ b/libio/iomanip.h @@ -102,6 +102,9 @@ public: { return imanip(_f, a); } }; +template +inline istream& operator>>(istream&, const imanip&); + template 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& m); + istream& operator>> <>(istream& i, const imanip& m); }; template @@ -131,6 +134,9 @@ public: { return omanip(_f, a); } }; +template +inline ostream& operator<<(ostream&, const omanip&); + template 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& m); + ostream& operator<< <>(ostream& o, const omanip& m); }; template -- cgit v1.1