Boost logo

Boost Users :

Subject: Re: [Boost-users] Problem with MSVS 2008 with gregorian
From: Boris (boriss_at_[hidden])
Date: 2008-11-14 11:40:40


On Fri, 14 Nov 2008 16:20:31 +0100, Dan Smithers <dan_at_[hidden]>
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.
>
> [...]
> Is there a workaround?

#define NOMINMAX

Boris


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