
Hi Nils, Op den Sünnavend 06 März 2010 Klock 22:17:14 hest Du schreven:
If copy-initialization from int to std::bitset works well, I think I'll commit that as workaround. So Juergen, please let me know, if you can give it another try, for msvc-10.0, msvc-9.0 and gcc-4.4.
Of course. 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. 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 !