Skip to content

Conversation

@bifurcation
Copy link
Contributor

In #50, we didn't make the allocator optional, we made it forbidden. This PR adds a NO_ALLOC flag that turns off the allocator dependency. If that flag is enabled, we use std::vector and std::map as normal. If it is enabled, then we use our custom, fixed-size vector/map implementations.

The main note of caution here is that we inherit from STL containers. This is fine within the scope of this library, but can cause memory leaks in certain other situations.

@bifurcation bifurcation merged commit d626788 into main May 5, 2025
19 checks passed
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.

3 participants