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

Swap and move boost::pool #58

Open
mglisse opened this issue Jun 26, 2024 · 0 comments
Open

Swap and move boost::pool #58

mglisse opened this issue Jun 26, 2024 · 0 comments

Comments

@mglisse
Copy link

mglisse commented Jun 26, 2024

Hello,
from a quick look (so I can easily be mistaken) at the implementation of boost::pool, it looks like allowing swap and move operations should not cause any major issue. Is that something that you would consider?

Use case: we do not use a global pool (bad for threading), we have a few big objects (usually no more than a handful, or maybe 1-2 per thread) that each own a pool for their internal needs, and we would like to provide swap/move operations on those objects. Wrapping the pool in a unique_ptr is a possibility, but it seems like an unnecessary (small) waste.

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

No branches or pull requests

1 participant