12 Oct
2013
12 Oct
'13
1:07 p.m.
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.