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

Fix dynamic allocation in trajectory.hpp #214

Merged
merged 1 commit into from
Dec 8, 2024
Merged

Conversation

ahoarau
Copy link
Contributor

@ahoarau ahoarau commented Dec 6, 2024

The lambda to std::function allocates heap memory, not good in a real-time context.
There's better ways to do that in c++20 and up, here is just a quick fix to stay compatible.

lambda to std::function allocates heap memory
@pantor
Copy link
Owner

pantor commented Dec 8, 2024

Thanks!

@pantor pantor merged commit 2fb7781 into pantor:main Dec 8, 2024
7 checks passed
@ahoarau ahoarau deleted the patch-1 branch December 8, 2024 18:31
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