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

[22043] Call Cdr::set_dds_cdr_options() when TypeSupport encodes (backport #417) #418

Open
wants to merge 1 commit into
base: 3.3.x
Choose a base branch
from

Conversation

mergify[bot]
Copy link

@mergify mergify bot commented Nov 5, 2024

Description

According with new fastcdr API usage, the generated code should call Cdr::set_dds_cdr_options().

Depends on:

@Mergifyio backport 3.3.x

Contributor Checklist

  • Commit messages follow the project guidelines.

  • N/A Tests that thoroughly check the new feature have been added/Regression tests checking the bug and its fix have been added; the added tests pass locally

  • N/A New feature has been documented/Current behavior is correctly described in the documentation.

  • Applicable backports have been included in the description.

Reviewer Checklist

  • The PR has a milestone assigned.
  • The title and description correctly express the PR's purpose.
  • Check contributor checklist is correct.
  • Check CI results: changes do not issue any warning.
  • Check CI results: failing tests are unrelated with the changes.

This is an automatic backport of pull request #417 done by [Mergify](https://mergify.com).

Signed-off-by: Ricardo González Moreno <[email protected]>
(cherry picked from commit b3cf046)
@MiguelCompany MiguelCompany self-requested a review November 5, 2024 13:18
@MiguelCompany MiguelCompany added this to the v3.3.1 milestone Nov 5, 2024
@github-actions github-actions bot added ci-pending PR which CI is running labels Nov 5, 2024
@MiguelCompany
Copy link
Member

@richiware This fails building with Fast CDR 1.x

@@ -142,6 +142,7 @@ bool $struct.name$PubSubType::serialize(
ser.serialize_encapsulation();
// Serialize the object.
ser << *p_type;
ser.set_dds_cdr_options({0,0});
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
ser.set_dds_cdr_options({0,0});
#if FASTCDR_VERSION_MAJOR > 1
ser.set_dds_cdr_options({0,0});
#else
ser.setDDSCdrOptions(0);
#endif // FASTCDR_VERSION_MAJOR > 1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ci-pending PR which CI is running
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants