[llvm-bugs] [Bug 33680] New: std::right and std::boolalpha not working right

via llvm-bugs llvm-bugs at lists.llvm.org
Mon Jul 3 07:12:38 PDT 2017


            Bug ID: 33680
           Summary: std::right and std::boolalpha not working right
           Product: libc++
           Version: 4.0
          Hardware: PC
                OS: All
            Status: NEW
          Severity: normal
          Priority: P
         Component: All Bugs
          Assignee: unassignedclangbugs at nondot.org
          Reporter: rianquinn at gmail.com
                CC: llvm-bugs at lists.llvm.org, mclow.lists at gmail.com

std::cout << std::setw(54) << std::setfill(' ') << std::left << "blah test";
std::cout << std::setw(16) << std::setfill('.') << std::right << std::boolalpha
<< false;
std::cout << '\n';

results in:
blah test                                             false...............

If I remove std::boolalpha, or print the string "false" it works as expected.

You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20170703/4dabffd8/attachment.html>

More information about the llvm-bugs mailing list