Commit 5a8abe1c authored by Mike Kruskal's avatar Mike Kruskal Committed by Copybara-Service
Browse files

Add static asserts to container classes.

This will prevent unsupported uses of these classes downstream, which can behave surprisingly and increase the friction of changes to protobuf.  Specifically RepeatedField, RepeatedPtrField, and Map will only be allowed to hold the types listed in https://protobuf.dev/programming-guides/proto.  The old behavior allowed them to hold just about anything, including custom user types.

PiperOrigin-RevId: 502672732
parent 8ea499d6
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment