-
Notifications
You must be signed in to change notification settings - Fork 141
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
Remove serialization support from Boost.Unordered containers #289
Remove serialization support from Boost.Unordered containers #289
Conversation
Hmmm - I don't really understand this yet. Is the new Boost.Unordered compatible with the current previous one? If it's not one would need to know what to do about files serialized under the previous version. Assuming that they are compatible, and you want to take over this functionality, I'd be all for it. But I need to know that it won't break currently existing archives. Assuming that the above is satisfied. The real fix is to remove the files currently in the serialization library which implement and test this functionality. The current header would contain nothing but a #pragma message pointing the user to the fact that he should make adjustments in his program. Then responsibility for testing would fall entirely to you - which is fine with me. You could also just re-use the current headers boost/serialization/hash_set.hpp with your own code update and the tests would continue to run as they do now. |
Hey Robert, thanks for taking the time look at the PR!
Luckily, Joaquin has you covered here: We have a committed set of legacy archives that we've included in our serialization tests here:
Great minds think alike, I was suggesting a pragma message to Joaquin earlier. What would you like the message to say? Something maybe just like: BOOST_PRAGMA_MEESAGE("This header is deprecated, Unordered supports Serialization directly now."); |
d226f78
to
c1fb319
Compare
Unordered now supports its Serialization functions so the headers just need to be updated to keep backwards compatibility
c1fb319
to
f284822
Compare
@robertramey I think this PR should be good to go, Unordered's already merged in its support for Serialization which essentially pollutes your CI with needless test failures. |
It looks to me that some of the removed files contain code which implements serialization for std hashed/unordered containers. Am I right? Are you sure you're not removing something that someone might be using? |
That functionality should live in Here I'm only updating: Unless I'm missing something obvious here, everything seems okay. |
That's my question. Isn't the point of this to totally eliminate boost/serialization/unordered_set.hpp? does the functionality to serialize std::unordered_set.hpp reside in your library? |
It does not. This PR is strictly about Boost.Unordered and not the STL containers. Sorry, I should've introduced myself better. I'm the maintainer of Boost.Unordered and work alongside Joaquin to develop new containers for the library. Our goal here is to only remove support for |
Unordered added a slew of new containers and while adding Serialization support for them, we noticed Serialization directly supports
boost::unordered_map
et al.We'd like to own our own means of serialization and to prevent breaking changes to Serialization and its users, we made this PR to maintain compatibility.
We haven't updated Unordered's develop branch yet because this would break Serialization's CI. You can see the open pull request here:
boostorg/unordered#207