Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix bitset loading when bits are already set. #355

Merged
merged 2 commits into from
Oct 28, 2016

Conversation

drivehappy
Copy link
Contributor

While investigating porting our codebase from Boost.Serialization, noticed this issue. When loading into a bitset that may already have bits set high, the de-serialization won't properly set any bits that are low.

@erichkeane
Copy link
Contributor

IMO, Instead of this solution, we'd likely be better off doing a std::bitset::reset() at the beginning. It would likely be dozens of times faster.

@erichkeane
Copy link
Contributor

+1, LGTM.

@AzothAmmo AzothAmmo added this to the v1.2.2 milestone Oct 28, 2016
@AzothAmmo AzothAmmo added the bug label Oct 28, 2016
@AzothAmmo AzothAmmo merged commit 195c0bf into USCiLab:develop Oct 28, 2016
@drivehappy drivehappy deleted the develop branch October 28, 2016 19:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants