In VC9, the code: unsigned long ul = 42; std::bitset<64> bits(ul);compiles ok. But in the VC10 RC, it fails with:error C2668: 'std::bitset<_Bits>::bitset' : ambiguous call to overloaded function with [ _Bits=64 ] c:\program files\microsoft visual studio 10.0\vc\include\bitset(136): could be 'std::bitset<_Bits>::bitset(_ULonglong)' with [ _Bits=64 ] c:\program files\microsoft visual studio 10.0\vc\include\bitset(127): or 'std::bitset<_Bits>::bitset(int)' with [ _Bits=64 ] while trying to match the argument list '(unsigned long)'Which seems wrong (or at least bad for backwards compatability).I also dont see a constructor that takes an int in the C++0x draft spec i have (N3000).
Product Language
Version
Operating System
Operating System Language
Steps to Reproduce
Actual Results
Expected Results
Please wait...