Skip to content

fix(C++): add unordered_map type info hooks#3820

Merged
chaokunyang merged 1 commit into
apache:mainfrom
BaldDemian:cpp-map
Jul 5, 2026
Merged

fix(C++): add unordered_map type info hooks#3820
chaokunyang merged 1 commit into
apache:mainfrom
BaldDemian:cpp-map

Conversation

@BaldDemian

Copy link
Copy Markdown
Contributor

Why?

Nested collection IDL like list<map<...>> requires the element serializer to expose write_type_info and read_type_info.

In C++, std::map already did this, but std::unordered_map did not, causing generated C++ for nested map collections to fail during template instantiation.

What does this PR do?

  • Add missing type-info hooks for the C++ std::unordered_map serializer.
  • Add testcase.

Related issues

N/A.

AI Contribution Checklist

  • Substantial AI assistance was used in this PR: no

Does this PR introduce any user-facing change?

N/A.

Benchmark

N/A.

@chaokunyang chaokunyang merged commit e1e1091 into apache:main Jul 5, 2026
62 checks passed
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.

2 participants