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 for issue 370 : C++ generator deserialization #371

Merged
merged 4 commits into from
Jan 15, 2025

Conversation

serges147
Copy link

See issue #370

@serges147 serges147 self-assigned this Jan 13, 2025
@@ -222,20 +222,26 @@
{% set ref_size_bytes = 'size_bytes' |to_template_unique_name %}
{% set ref_delimiter = 'dh' |to_template_unique_name %}
{
{{ typename_unsigned_length }} {{ ref_size_bytes }} = in_buffer.size() / 8U;
{{ typename_unsigned_length }} {{ ref_size_bytes }};
Copy link
Member

Choose a reason for hiding this comment

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

A default initializer is needed anyway. The old construct seems fine; the optimizer will throw the extra assignment away anyway, then you can remove the else branch at the bottom.

Copy link
Author

Choose a reason for hiding this comment

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

fixed

@serges147 serges147 merged commit 948b75d into 3.0.preview Jan 15, 2025
32 checks passed
@serges147 serges147 deleted the sshirokov/issue370 branch January 15, 2025 09:32
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.

3 participants