
Hi Nils ! Op den Sünnavend 06 März 2010 Klock 17:18:37 hest Du schreven:
Hi Nils !
Op den Sünnavend 06 März 2010 Klock 15:50:46 hest Du schreven:
There's a regression failure of Microsoft Visual C++ 10 on a unit test Can anyone here reproduce the compile error?
Yes, using msvc-10.0 RC (I hope :-))
If so, would it be helpful
to replace line 20 and 21 by using parentheses? As follows: const bitset_type initial_value1(1ul); const bitset_type initial_value2(2ul);
So, it seem that using (1) and (2) resolves this issue: Index: std_bitset.cpp =================================================================== --- std_bitset.cpp (revision 60227) +++ 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; Tested with msvc-10.0, msvc-9.0 and gcc-4.4 (mingw) Yours, Jürgen - * Dipl.-Math. Jürgen Hunold ! Ingenieurgesellschaft für * voice: ++49 511 262926 57 ! Verkehrs- und Eisenbahnwesen mbH * fax : ++49 511 262926 99 ! Lister Straße 15 * juergen.hunold@ivembh.de ! www.ivembh.de * * Geschäftsführer: ! Sitz des Unternehmens: Hannover * Prof. Dr.-Ing. Thomas Siefer ! Amtsgericht Hannover, HRB 56965 * PD Dr.-Ing. Alfons Radtke !