This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Re: pending/4735
- To: gcc-gnats at gcc dot gnu dot org, gcc-bugs at gcc dot gnu dot org
- Subject: Re: pending/4735
- From: Paolo Carlini <pcarlini at unitus dot it>
- Date: Fri, 02 Nov 2001 10:33:17 +0100
Not a bug. Use either of:
cout << std::right << setw(10) << "abc";
cout << setw(10) << std::left << "def";
cout << setiosflags(ios::right) << setw(10) << "abc";
cout << setw(10) << resetiosflags(ios::adjustfield) <<
setiosflags(ios::left) << "def";
to obtain the desired output.
Cheers,
Paolo.
http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&pr=4735&database=gcc