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

Remove P: PoolAllocator bounds on pools #2

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

v0x0g
Copy link

@v0x0g v0x0g commented Jun 26, 2024

Summary of Changes

  • Move the bounds to the implementations, not the struct
  • Non-breaking change
  • Makes it nicer to use the structs in other places now.

Reasoning

This makes the pool object a bit nicer to use, since the P: PoolAllocator<T> bound is no longer present in the struct definition, so it removes the restrictions when using it as a field inside another struct.

- Move the bounds to the implementations, not the struct
- Non-breaking change
- Makes it nicer to use the structs in other places now.
@v0x0g
Copy link
Author

v0x0g commented Sep 6, 2024

@fereidani Any update on this?

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.

1 participant