Fix to libio/iomanip.h

Raja R Harinath harinath@cs.umn.edu
Fri Oct 24 12:35:00 GMT 1997


Hi,

Here's a fix to `libio/iomanip.h' that I needed to get PRCS to compile
properly:

This fix is already in place for the class `smanip', but not the classes
`imanip' and `omanip'.

  ----------------------------------------------------------------------
  *** iomanip.h~  Tue Oct 21 19:46:46 1997
  --- iomanip.h   Fri Oct 24 14:29:37 1997
  ***************
  *** 109,115 ****
	imanip(istream& (*f)(istream&, TP), TP a) : _f(f), _a(a) {}
	//
	friend
  !       istream& operator>>(istream& i, const imanip<TP>& m);
    };

    template <class TP>
  --- 109,115 ----
	imanip(istream& (*f)(istream&, TP), TP a) : _f(f), _a(a) {}
	//
	friend
  !       istream& operator>> <>(istream& i, const imanip<TP>& m);
    };

    template <class TP>
  ***************
  *** 138,144 ****
	omanip(ostream& (*f)(ostream&, TP), TP a) : _f(f), _a(a) {}
	//
	friend
  !       ostream& operator<<(ostream& o, const omanip<TP>& m);
    };

    template <class TP>
  --- 138,144 ----
	omanip(ostream& (*f)(ostream&, TP), TP a) : _f(f), _a(a) {}
	//
	friend
  !       ostream& operator<< <>(ostream& o, const omanip<TP>& m);
    };

    template <class TP>
  ----------------------------------------------------------------------

- Hari
-- 
Raja R Harinath ------------------------------ harinath@cs.umn.edu
"When all else fails, read the instructions."      -- Cahn's Axiom
"Our policy is, when in doubt, do the right thing."   -- Roy L Ash



More information about the Gcc mailing list