Skip to content

Allow custom stack allocator to have non-static Free function#2305

Open
elasota wants to merge 1 commit intoTencent:masterfrom
elasota:master
Open

Allow custom stack allocator to have non-static Free function#2305
elasota wants to merge 1 commit intoTencent:masterfrom
elasota:master

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
Thank you for your submission, we really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.
You have signed the CLA already but the status is still pending? Let us recheck it.

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