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

Replace boost::container with cpp17::pmr #4731

Merged
merged 1 commit into from
Feb 16, 2024

Conversation

davisp
Copy link
Contributor

@davisp davisp commented Feb 15, 2024

This removes the boost dependency to avoid having to make that work in our builds that are still using external packages. This change uses std::pmr when it is detected as available and usable. On platforms that don't have a working std::pmr (notably, macOS < 14), it uses the implementation from Pablo Halpern that is implemented with purely C++11 features.

The major downfall to this approach is that if/when we start changing allocator strategies it'll require us to backport/reimplement those allocator strategies for macOS < 14. However, if we end up writing our own allocation strategies they'll work on either implementation seamlessly.


TYPE: NO_HISTORY
DESC: Remove boost::container

Copy link

This pull request has been linked to Shortcut Story #41129: Remove boost::container dependency.

@davisp davisp force-pushed the pd/sc-41129/remove-boost-container branch 5 times, most recently from 104e813 to 01b31c5 Compare February 15, 2024 20:30
This removes the boost dependency to avoid having to make that work in
our builds that are still using external packages. This change uses
std::pmr when it is detected as available and usable. On platforms that
don't have a working std::pmr (notably, macOS < 14), it uses the
implementation from Pablo Halpern that is implemented with purely C++11
features.

The major downfall to this approach is that if/when we start changing
allocator strategies it'll require us to backport/reimplement those
allocator strategies for macOS < 14. However, if we end up writing our
own allocation strategies they'll work on either implementation
seamlessly.
@davisp davisp force-pushed the pd/sc-41129/remove-boost-container branch from 01b31c5 to 6b05702 Compare February 15, 2024 23:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants