[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
Thu May 5 12:29:13 PDT 2011


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





--- Comment #13 from Alexis Menard <alexis.menard at openbossa.org>  2011-05-05 12:29:12 PST ---
(In reply to comment #11)
> It appears at least one of those files has a "using namespace std" in it.
> Source/JavaScriptCore/bytecompiler/BytecodeGenerator.cpp:39:using namespace std;
> 
> I wonder how hard it would be to remove that.
> 
> Unfortunately, there are 392 instances of 'using namespace std' in the WebKit codebase.

A solution could be to get rid of using namespace std and fix the code accordingly and when isnan and friends are in the std then it's fine and we just namespace the WebKit implementation of isnan and friends into "std". Globally using namespace std always lead to name conflicts at some points (based on my little experience).

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