Boost logo

Boost :

Subject: Re: [boost] [typeof] trunk build broken
From: Stephen Kelly (steveire_at_[hidden])
Date: 2013-10-12 09:07:37


On 10/12/2013 03:03 PM, cg wrote:
> If seems r86260 breaks MSVC build too.
>
> The code:
>
> #if !defined(BOOST_MPL_CFG_HAS_TYPEOF) \
> && !defined(BOOST_MPL_PREPROCESSING_MODE) \
> && ( defined(BOOST_MPL_CFG_GCC) \
> || defined(__MWERKS__) && __MWERKS__ >= 0x3000 \
> )
>
> # define BOOST_MPL_CFG_HAS_TYPEOF
>
> #endif
>
> should change to:
>
> #if !defined(BOOST_MPL_CFG_HAS_TYPEOF) \
> && !defined(BOOST_MPL_PREPROCESSING_MODE) \
> && ( BOOST_MPL_CFG_GCC \ <========= Change here
> || defined(__MWERKS__) && __MWERKS__ >= 0x3000 \
> )
>
> # define BOOST_MPL_CFG_HAS_TYPEOF
>
> #endif
>
> Because under MSVC: BOOST_MPL_CFG_GCC is defined to 0,
> it is _defined_.

Thanks! I changed the line to check for > 0 instead.

Steve.


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk