
30 Nov
2005
30 Nov
'05
1:47 p.m.
On 30/11/05, Job Mulder <Job@xsens.com> wrote:
My Visual Studio 6 requires the trigonometry functions sin, cos, etc. to be prefixed with ::
Prefixing with :: is not the correct solution. VC++6 was made before the standard and so it doesn't put the math functions in namespace std where they belong, so prefixing would break it in comformant compilers ( since the global ones are the ones from <math.h> and aren't overloaded ). The best solution is to upgrade your compiler :P Barring that, using declarations would be a much better fix, since that way they'd be better isolated. - Scott