From: Chris Little (cslittle_at_[hidden])
Date: 2001-08-27 08:48:52
A more general fix that is working for us is to include <boost/config.hpp>
in the precompiled header file. config.hpp looks after disabling Windows'
min and max functions.
> From: Deane_Yang_at_[hidden]
> Reply To: boost_at_[hidden]
> Sent: Monday, August 27, 2001 12:57 AM
> To: boost_at_[hidden]
> Subject: [boost] Re: max/min problems
> 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
> > including any Windows headers.
> > -- Darin
> Info: http://www.boost.org Unsubscribe:
> Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk