Boost logo

Boost Users :

Subject: Re: [Boost-users] Problem with MSVS 2008 with gregorian
From: Yaser Zhian (yahoo_at_[hidden])
Date: 2008-11-14 11:49:26


Dan Smithers wrote:
> Hi I have a problem building under studio 2008. It appears that
>
> #define max(a,b) ...
>
> collides with the member function greg_month::max() and won't compile
> complaining that not enough arguments are provided.
>
[snip]

You could try putting a "#define NOMINMAX" before including the
"windows.h" header. But beware that I'm not an expert, so it might not
work, or cause something else to fail.

-yzt




Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net