Frederic Bouvier wrote:
Hi,

I have problems compiling today's JSBsim with MSVC. I had
to patch the sources like this :
;
-   SG_USING_STD(sqrt);
+//   SG_USING_STD(sqrt);

because sqrt is not a member of std::

Is this declaration really necessary ? I see that <math.h> is included
11 lines before and it should declare sqrt in the global namespace, not
in the std namespace, so why a 'using std::sqrt;' here ? Is it required
for cygwin or linux or another unix ?

Actually I have no idea how math.h could define something in namespace std since it is a C header file. Maybe most unices put C definitions in namespace std by default, but they *must* be available outside of the std namespace also (IMHO).


Committed.

Erik

_______________________________________________
Flightgear-devel mailing list
[EMAIL PROTECTED]
http://mail.flightgear.org/mailman/listinfo/flightgear-devel

Reply via email to