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

Initial and final function stacks: Use std::function #4218

Merged
merged 1 commit into from
Nov 6, 2024

Conversation

WeiqunZhang
Copy link
Member

Use std::function instead of function pointer for the initial and final function stacks. This is more flexible because we can now use lambda functions with captures (which cannot be converted to function pointer, but can be converted std::function).

Use std::function instead of function pointer for the initial and final
function stacks. This is more flexible because we can now use lambda
functions with captures (which cannot be converted to function pointer, but
can be converted std::function).
@WeiqunZhang WeiqunZhang requested a review from atmyers November 6, 2024 16:24
@WeiqunZhang WeiqunZhang merged commit f46a4e5 into AMReX-Codes:development Nov 6, 2024
57 of 59 checks passed
@WeiqunZhang WeiqunZhang deleted the finalizer_fn branch November 6, 2024 19:04
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