Skip to content

Commit

Permalink
Fix incorrect separator when generating tag type
Browse files Browse the repository at this point in the history
Module and type names with '_', e.g. 'Test_Module::A_Type' were
generating incorrect tags that did not align with the use of '::'
elsewhere, with result compile failures.
  • Loading branch information
banburybill committed Sep 19, 2024
1 parent a085078 commit 29eed53
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion dds/idl/metaclass_generator.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -473,7 +473,7 @@ void generate_anon_fields(AST_Structure* node)
post = "_forany";
} else if (use_cxx11 && (elem_cls & (CL_ARRAY | CL_SEQUENCE))) {
pre = "IDL::DistinctType<";
post = ", " + dds_generator::get_tag_name(dds_generator::scoped_helper(deepest_named_type(elem_orig)->name(), "_")) + ">";
post = ", " + dds_generator::get_tag_name(dds_generator::scoped_helper(deepest_named_type(elem_orig)->name(), "::")) + ">";
}
be_global->impl_ <<
" if (!gen_skip_over(ser, static_cast<" << pre << cxx_elem << post
Expand Down

0 comments on commit 29eed53

Please sign in to comment.