Boost logo

Boost :

Subject: Re: [boost] [utility/swap] MSVC 10 test failure, unsigned long to std::bitset conversion invalid?
From: Richard Webb (richard.webb_at_[hidden])
Date: 2010-03-09 10:05:19


Niels Dekker - address until 2010-10-10 wrote:
>
>
> Robert Stewart wrote:
>> I can see that being an issue if the tests are compiled with C++0x
>> features enabled. Otherwise, MSVC 10 is wrong.
>
> I'm not sure, but it looks like MSVC 10 will always have its C++0x
> features
> enabled. The <bitset> header of MSVC 10 beta 1 only offers the old
> C++98/03
> bitset(unsigned long) constructor if the macro _HAS_CPP0X is /not/
> defined.
> But apparently _HAS_CPP0X /is/ defined, at least on the msvc-10.0 RC
> configuration tested here by Juergen Hunold, and on the regression site,
> www.boost.org/development/tests/trunk/RWVC10.html I tried to un-define
> _HAS_CPP0X (compiler option "/u _HAS_CPP0X"), but it doesn't seem to work.
>
>

There is some logic in yvals.h which defines _HAS_CPP0X to 1 if it's not
defined already (and by default, it is defined and set to 1).

If you manually define _HAS_CPP0X=0 in the project options, then the C++0x
features will be disabled.

-- 
View this message in context: http://old.nabble.com/-utility-swap--MSVC-10-test-failure%2C-unsigned-long-to-std%3A%3Abitset-conversion-invalid--tp27804756p27836941.html
Sent from the Boost - Dev mailing list archive at Nabble.com.

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