[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:48:06 PDT 2011


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





--- Comment #15 from Alexis Menard <alexis.menard at openbossa.org>  2011-05-05 12:48:06 PST ---
(In reply to comment #14)
> (In reply to comment #13)
> > A solution could be to get rid of using namespace std
> 
> We don’t want to do this for the whole project just because of the math headers being screwed up on some platform. There should not be a isnan function both in the global namespace and in namespace std on any platform. Platforms that have that have a broken C++ library and we should find a workaround for that brokenness.

Well this I agree, it's stupid.

> 
> > Globally using namespace std always lead to name conflicts at some points (based on my little experience).
> 
> What do you mean by “globally using”? Are you saying no one can ever use “using namespace std”? That does not correspond to my experience.

I'm saying that if you do :

using namespace std;
using namespace other;

you may have name collisions. That's why I always used std::X but I'm fine with what you say. I'll try to come up with an acceptable workaround.

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