[Webkit-unassigned] [Bug 53183] New: MathExtras.h missing additional "using std::<cmathfunction>" statements

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Wed Jan 26 11:43:59 PST 2011


https://bugs.webkit.org/show_bug.cgi?id=53183

           Summary: MathExtras.h missing additional "using
                    std::<cmathfunction>" statements
           Product: WebKit
           Version: 528+ (Nightly build)
          Platform: Other
        OS/Version: Other
            Status: UNCONFIRMED
          Severity: Normal
          Priority: P2
         Component: JavaScriptCore
        AssignedTo: webkit-unassigned at lists.webkit.org
        ReportedBy: nlandry at rim.com


Looking at the C++ spec, if cmath is included the only guarantee we have is that the math functions will appear in the std namespace (spec section 17.4.1.2 clause 4, http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2005/n1905.pdf).  By only including cmath in MathExtras.h, we don't have any guarantees that the math functions will also appear in the global namespace.  MSVC headers include math functions in both std and in global, but RVCT 4 does not (without special compile parameters) and will fail to compile with missing identifiers.

-- 
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.



More information about the webkit-unassigned mailing list