This is just another one of the ways in which Microsoft breaks the C++
standard. I thought they only did this min/max thing in windows.h but I
guess that isn't right. But in any case. I think you just need to #define
NOMINMAX before you include any windows headers and everything is fine. Or
try #including dlib/windows_magic.h at the very top of your program.
-Davis
On Tue, Jan 13, 2009 at 2:50 AM, Steven Van Ingelgem
<st...@va...>wrote:
> Hi Davis,
>
>
> In "dlib.random_helpers.mersenne_twister", there are functions min/max.
> Now the problem is that if I include "stdlib.h" before them, macros called
> "min", "max" are defined. And as such this class doesn't compile anymore.
>
> Is there a possibility to rename those functions to remove the clash
> between the defines and the class functions?
>
>
> Thanks,
> Steven
>
|