|
Boost : |
From: David Abrahams (dave_at_[hidden])
Date: 2003-04-29 09:33:37
"Eric Frias" <efrias_at_[hidden]> writes:
> I just tried compiling a program that used the format library with
> Microsoft's newly-released compiler and got a compile problem with an old
> compatibility hack:
>
> In format/msvc_disambiguater.hpp, the contents are guarded with:
> #if defined(BOOST_MSVC) && BOOST_MSVC <= 1300
>
> And in format/feed_args.hpp, the section of code that uses the disambiguater
> is guarded with:
> #if BOOST_WORKAROUND( BOOST_MSVC, BOOST_TESTED_AT(1300))
>
> I believe the workaround is not needed for 7.1, so the guard in
> msvc_disambiguater.hpp is correct. I'm not entirely sure how to use the
> BOOST_WORKAROUND macros
Did you read the contents of boost/detail/workaround.hpp?
> , but I think the one in feed_args.hpp needs to be
> rewritten something like:
> #if BOOST_MSVC <= 1300 && \
> BOOST_WORKAROUND(BOOST_MSVC, BOOST_TESTED_AT(1310))
That's equivalent to
#if BOOST_WORKAROUND(BOOST_MSVC, BOOST_TESTED_AT(1310))
unless there are versions of BOOST_MSVC in the range [1301..1310)
-- Dave Abrahams Boost Consulting 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