Login  Register

RE: Some trouble with qldefines.hpp

Posted by Nicolas Di Césaré on Nov 02, 2001; 1:32am
URL: http://quantlib.414.s1.nabble.com/Some-trouble-with-qldefines-hpp-tp1787p1789.html

En réponse à Jens Thiel <[hidden email]>:

> #define NOMINMAX
>
> before (directly or indirectly) including WinDef.h usually solves this
> kind
> of problems (but may spawn others with eg. ATL headers, so you may need
> to
> define some replacements).

Hi Jens,

Do you know if WinDef.h is included somewhere in standart C++ headers?
because I don't include that file :-(

I add NOMINMAX in the preprocessor definitions and it works fine if I redefine
min/max functions.

I think that the 1st solution is better because we just have to change
qldefines.hpp file. With the second one, we have to define NOMINMAX in each new
project.

Do you have another idea?

Thanks,

Nicolas


 



--
Nicolas Di Césaré
http://acm.emath.fr/~dicesare