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

Add bounded string support in C++ #645

Draft
wants to merge 1 commit into
base: rolling
Choose a base branch
from

Conversation

aprotyas
Copy link
Member

This PR consists of two parts:

  • [rosidl_runtime_cpp] Introduces a bounded_basic_string class.
  • [rosidl_generator_cpp] Correctly map bounded string/wstring IDL types to bounded_basic_string types, rather than std::basic_string types.

Fixes #637.

Signed-off-by: Abrar Rahman Protyasha aprotyas@u.rochester.edu

This commit correctly maps Bounded string/wstring IDL types
to `rosidl_runtime_cpp::bounded_basic_string` types, rather than
`std::basic_string` types.

Signed-off-by: Abrar Rahman Protyasha <aprotyas@u.rochester.edu>
@aprotyas aprotyas force-pushed the aprotyas/bounded_string_support branch from d383778 to 8cab193 Compare January 13, 2022 20:42
@fujitatomoya
Copy link

@aprotyas any progress or plan on this?

@aprotyas
Copy link
Member Author

@fujitatomoya it'll be a while before I can get back to this (school gets in the way!), but I have a WIP BoundedString implementation that I'd integrate into this PR.

Feel free to take over this PR though. Let me know if you do.

@audrow audrow changed the base branch from master to rolling June 28, 2022 14:23
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.

Length of size limited string is not checked
2 participants