[LLVMbugs] [Bug 14874] New: Should abs be in the flat namespace?

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Wed Jan 9 07:21:53 PST 2013


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

             Bug #: 14874
           Summary: Should abs be in the flat namespace?
           Product: libc++
           Version: unspecified
          Platform: Macintosh
        OS/Version: MacOS X
            Status: NEW
          Severity: normal
          Priority: P
         Component: All Bugs
        AssignedTo: hhinnant at apple.com
        ReportedBy: sebastien.gilles at inria.fr
                CC: llvmbugs at cs.uiuc.edu
    Classification: Unclassified


I'm trying to compile a library with clang and libc++, and stumble upon many
name conflicts as this library has redefined functions named "abs", "norm",
etc... in the global namespace.

This library (named Freefem++) compiles well with libstdc++; I had a quick look
and I am under the impress that the difference is in cmath header file: in
libstdc++ the abs function is in std namespace whereas in libc++ it is in
global one.

Am I right in my assessment, and if so which library complies with the C++
standard on that point?

Best regards,

Sebastien Gilles

-- 
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.



More information about the llvm-bugs mailing list