Boost logo

Boost :

From: me22 (me22.ca_at_[hidden])
Date: 2005-11-30 08:47:38

On 30/11/05, Job Mulder <Job_at_[hidden]> 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

Boost list run by bdawes at, gregod at, cpdaniel at, john at