Boost logo

Boost :

Subject: Re: [boost] [utility/swap] MSVC 10 test failure, unsigned long to std::bitset conversion invalid?
From: Niels Dekker - address until 2010-10-10 (niels_address_until_2010-10-10_at_[hidden])
Date: 2010-03-07 06:04:33


On 2010-03-07 10:44, Juergen Hunold wrote:
> It works:
>
> Index: std_bitset.cpp
> ===================================================================
> --- std_bitset.cpp (revision 60246)
> +++ std_bitset.cpp (working copy)
> @@ -17,8 +17,8 @@
> int test_main(int, char*[])
> {
> typedef std::bitset<8> bitset_type;
> - const bitset_type initial_value1 = 1ul;
> - const bitset_type initial_value2 = 2ul;
> + const bitset_type initial_value1 = 1;
> + const bitset_type initial_value2 = 2;
>
> bitset_type object1 = initial_value1;
> bitset_type object2 = initial_value2;
>
> Test compiler msvc-10.0, msvc-9.0 and gcc-4.4.

Thank you, Juergen. If nobody objects, I'll commit this particular
workaround to the trunk, later today.

I have already created a ticket, #3984, "utility/swap std_bitset
regression failure on msvc-10 (RC)",
https://svn.boost.org/trac/boost/ticket/3984

Kind regards, Niels

-- 
Niels Dekker
http://www.xs4all.nl/~nd/dekkerware
Scientific programmer at LKEB, Leiden University Medical Center

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