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

[rosidl_runtime_c] Add move semantics support #838

Open
zhangyi1357 opened this issue Nov 19, 2024 · 0 comments
Open

[rosidl_runtime_c] Add move semantics support #838

zhangyi1357 opened this issue Nov 19, 2024 · 0 comments

Comments

@zhangyi1357
Copy link

Feature request

Feature Description

Currently, rosidl_runtime_c implements copy functions for various basic types, but does not consider move semantics-related APIs. Theoretically, providing move-related APIs could significantly improve the convenience and performance of applications built upon it.
For example, I am currently implementing some interoperability with other frameworks based on rosidl_typesupport_introspection_c's typesupport, but the lack of move semantics forces me to implement the relevant move functionality within my framework, which is not elegant.

Implementation Considerations

I have carefully reviewed the implementation in rosidl_runtime_c. The move method should not differ significantly from the copy method; only minor adjustments are needed to address the semantics.
If the discussion concludes that this feature is necessary, I will begin implementation in the coming weeks.

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

No branches or pull requests

1 participant