|
Boost : |
From: Deane_Yang_at_[hidden]
Date: 2001-08-26 23:57:49
Yes, that seems to work. Thank you!
--- In boost_at_y..., Darin Adler <darin_at_b...> wrote:
> On Sunday, August 26, 2001, at 09:26 PM, Deane_Yang_at_y... wrote:
>
> > I'm trying to compile some code that does the following:
> >
> > #include <ole2.h> // Windows stuff
> > #include <boost/cast.hpp>
> >
> > This doesn't work, because the first #include defines
> > macros max and min. This conflicts with the use of min
> > inside cast.hpp.
> >
> > Is this something that I always have to fix manually?
>
> The typical solution to this Windows issue is to #define NOMINMAX
before
> including any Windows headers.
>
> -- Darin
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk