From: David Abrahams (dave_at_[hidden])
Date: 2004-09-21 11:17:44
"Aleksey Gurtovoy" <agurtovoy_at_[hidden]> writes:
> David Abrahams writes:
>> The introduction of mpl::numeric_cast has caused a regression in
>> libs\python\test\vector_indexing_suite.cpp for vc6. How shall we
>> resolve this problem?
> Resolved in the CVS:
> +#include <boost/mpl/aux_/config/msvc.hpp>
> +#include <boost/mpl/aux_/config/workaround.hpp>
> +// agurt 21/sep/04: portability macro for the sake of MSVC 6.x-7.0;
> +// resolves conflicts with 'boost::numeric_cast' function template.
> +// use it in your own code _only_ if you care about compatibility with
> +// these outdated compilers!
> +#if BOOST_WORKAROUND(BOOST_MSVC, <= 1300)
> +# define BOOST_MPL_AUX_NUMERIC_CAST numeric_cast_
> +# define BOOST_MPL_AUX_NUMERIC_CAST numeric_cast
> ... only to find that it was masking an ICE. I'll have to look at it
> later today.
Thanks for pursuing this!
-- Dave Abrahams Boost Consulting http://www.boost-consulting.com
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk