Skip to content

Restore Cdr::deserialize_bool_sequence(std::vector<bool>&) - #364

Merged
rsanchez15 merged 1 commit into
masterfrom
bugfix/restore-function
Nov 24, 2026
Merged

rsanchez15 merged 1 commit into
masterfrom
bugfix/restore-function

Conversation

@richiware

@richiware richiware commented Nov 24, 2026 •

Copy link
Copy Markdown
Member

The try-construct support (#350) replaced the exported deserialize_bool_sequence(std::vector&) with an overload taking a CdrTryConstructFlag and a maximum length. Removing the old symbol broke ABI for binaries already linked against it.

Restore the single-argument overload out-of-line in Cdr.cpp. It forwards to the extended overload with CdrTryConstructFlag::FAIL and no length limit. The public deserialize(std::vector&) calls it again, as it did before try-construct. The serialized data does not change.

Description

Contributor Checklist

  • Commit messages follow the project guidelines.
  • The code follows the style guidelines of this project.
  • 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
  • Any new/modified methods have been properly documented using Doxygen.
  • Changes are backport compatible: they do NOT break ABI nor change library core behavior.
  • Changes are API compatible.
  • New feature has been added to the versions.md file (if applicable).
  • 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: CI pass and failing tests are unrelated with the changes.

The try-construct support (#350) replaced the exported
deserialize_bool_sequence(std::vector<bool>&) with an overload taking a
CdrTryConstructFlag and a maximum length. Removing the old symbol broke
ABI for binaries already linked against it.

Restore the single-argument overload out-of-line in Cdr.cpp. It forwards
to the extended overload with CdrTryConstructFlag::FAIL and no length
limit. The public deserialize(std::vector<bool>&) calls it again, as it
did before try-construct. The serialized data does not change.

Signed-off-by: Ricardo González Moreno <ricardo@richiware.dev>
@MiguelCompany MiguelCompany added this to the v2.5.0 milestone Nov 24, 2026
@rsanchez15
rsanchez15 self-requested a review November 24, 2026 13:11
@rsanchez15
rsanchez15 merged commit 1d6ceb8 into master Nov 24, 2026
@rsanchez15
rsanchez15 deleted the bugfix/restore-function branch November 24, 2026 13:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants