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

Allow realloc() with allocators #37

Open
sofian opened this issue Jul 14, 2012 · 0 comments
Open

Allow realloc() with allocators #37

sofian opened this issue Jul 14, 2012 · 0 comments
Labels

Comments

@sofian
Copy link
Owner

sofian commented Jul 14, 2012

However, the StaticAllocator would return an error if we are trying to reallocate new space while the pointer is already ahead. And possibly return a warning if we are trying to reallocate less space in the same situation.

The idea is that we are using the fact that in many cases we will make the calls sequentially (ie. adding one element right after another).

This is yet just an idea. But it's easy to implement.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant