This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Re: c++/9215: Problem with reserting a stream to default using setf
- From: paolo at gcc dot gnu dot org
- To: gcc-bugs at gcc dot gnu dot org, gcc-prs at gcc dot gnu dot org, jon dot gjerde at nr dot no, nobody at gcc dot gnu dot org, paolo at gcc dot gnu dot org
- Date: 7 Jan 2003 12:48:34 -0000
- Subject: Re: c++/9215: Problem with reserting a stream to default using setf
- Reply-to: paolo at gcc dot gnu dot org, gcc-bugs at gcc dot gnu dot org, gcc-prs at gcc dot gnu dot org, jon dot gjerde at nr dot no, nobody at gcc dot gnu dot org, paolo at gcc dot gnu dot org, gcc-gnats at gcc dot gnu dot org
Synopsis: Problem with reserting a stream to default using setf
Responsible-Changed-From-To: unassigned->paolo
Responsible-Changed-By: paolo
Responsible-Changed-When: Tue Jan 7 04:48:30 2003
Responsible-Changed-Why:
Analyzed.
State-Changed-From-To: open->feedback
State-Changed-By: paolo
State-Changed-When: Tue Jan 7 04:48:30 2003
State-Changed-Why:
Basing on the ISO standard, what you are trying to do is not
portable across different implementations. On the contrary
cout.setf(ios_base::floatfield, ios_base::floatfield);
it is and works for me.
Works for you?
Thanks, Paolo.
http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=9215