You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
But in C/C++ language, the union type does not have a key.
... that may be so, but in the OMG DDS world ... it does optionally have a key, the discriminator. This has always been allowed by the DDS specs, an easy reference is the OMG DDS XTypes specification, wherein 7.2.2.4.4.4.8 "Key Members" states:
In a union type, only the discriminator is permitted to be a key member. The union discriminator is marked as a key by annotating the discriminator itself with the @key annotation [...]
I believe I am being quite generous when I say I think the decision to allow this was misguided ...
In the python language, the union type defaults to "keyless = False"
cyclonedds-python/cyclonedds/idl/_builder.py
Line 324 in 4841849
But in C/C++ language, the union type does not have a key.
The text was updated successfully, but these errors were encountered: