[LLVMbugs] [Bug 21564] New: 'std::defaultfloat' manipulator seems not to be present

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Thu Nov 13 08:28:21 PST 2014


http://llvm.org/bugs/show_bug.cgi?id=21564

            Bug ID: 21564
           Summary: 'std::defaultfloat' manipulator seems not to be
                    present
           Product: libc++
           Version: 3.4
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: All Bugs
          Assignee: unassignedclangbugs at nondot.org
          Reporter: santilopez01 at gmail.com
                CC: llvmbugs at cs.uiuc.edu, mclow.lists at gmail.com
    Classification: Unclassified

clang++ compiler seems no to find the std::defaultfloat manipulator. I get an
error when trying to compile the following code:

#include <iostream>
using namespace std;

int main()
{
   cout << defaultfloat << 1234;
}

I type the following in the command-line:

 $clang++-3.4 precision_float.cxx -std=c++11 -Wall

And I obtain:

 precision_float.cxx:15:10: error: use of undeclared identifier 'defaultfloat'
        cout << defaultfloat

Am I doing something wrong?

-- 
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/20141113/40496d4d/attachment.html>


More information about the llvm-bugs mailing list