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.

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.


Boost-users list run by williamkempf at, kalb at, bjorn.karlsson at, gregod at, wekempf at