[Webkit-unassigned] [Bug 59249] Colliding isinf/isnan between C99 and C++0x with GCC 4.6.0

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Tue May 15 05:18:15 PDT 2012


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


Allan Sandfeld Jensen <allan.jensen at nokia.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |allan.jensen at nokia.com




--- Comment #20 from Allan Sandfeld Jensen <allan.jensen at nokia.com>  2012-05-15 05:17:19 PST ---
See bug #86465 for the same problem with GCC 4.7, but solved.

Not that many files needed to have 'using namespace std' removed, and the few that did always only used std::min, std::max or std::numeric_limits.

My patch in bug #86465, solves the problem for the problematic files, but moving forward I would suggest adding:
using std::min
using std::max
using std::numeric_limits

to MathExtra.h so many files might avoid having to include the whole std namespace.

Also note that the style-checker currently is trying to enforce 'using namespace std' (why??) and thus trying to make the situation worse instead of better.

-- 
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