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 custom stack allocator to have non-static Free function #2305

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

Conversation

elasota
Copy link

@elasota elasota commented Sep 7, 2024

Changes some calls to Allocator::Free to call Free as a member function instead so that it works if the Free function is non-static. Null-check in Destroy because the allocator may be null in the destructor if the Stack was moved.

@tencent-adm
Copy link
Member

tencent-adm commented Sep 7, 2024

CLA assistant check
All committers have signed the CLA.

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