
Niels Dekker - address until 2010-10-10 wrote:
Interesting. I only have VC10 beta 1 installed, which does not have such a bitset::bitset(int). So the bug was introduced very recently!
Do I understand correctly that bitset::bitset(int) behaves exactly like the old bitset::bitset(unsigned long)? Assuming that sizeof(int) == sizeof(unsigned long), of course!
The change from unsigned long to unsigned long long is a c++0x change (c++98 says the constructor takes an unsigned long, and c++0x changes that to unsigned long long), and i think it was changed just to allow larger values. The int constructor looks like an MS special that was added in the release candidate. I was wondering if it was added to help out with this other bug: https://connect.microsoft.com/VisualStudio/feedback/details/500122/bitset-5-... -- View this message in context: http://old.nabble.com/-utility-swap--MSVC-10-test-failure%2C-unsigned-long-t... Sent from the Boost - Dev mailing list archive at Nabble.com.