|
![](/i/fill.gif) |
Thorsten Froehlich <tho### [at] trf de> wrote:
> The most important question here now is if you tested on any other platform
> yet. Windows headers tend to pull in lots of C headers, in particular math
> functions and such, so you may have missed a lot of missing declarations
> now, unless you added general using declarations everywhere a math function
> is used...
One possibility with that is to #include <math.h> instead of <cmath>.
While <math.h> is deprecated in the current standard, it's nevertheless
still standard, and including it should bring only the contents of <math.h>
to the global namespace instead of everything.
Of course the downside of this is that deprecation means that in the
future it might not work. (I actually haven't checked if C++0x still
defines the .h versions of standard headers as part of the standard in
the same way as C++98 does.)
While not the cleanest possible solution, at least it's an easy one.
--
- Warp
Post a reply to this message
|
![](/i/fill.gif) |