This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: pending/4735


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




Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]