eProsima / Fast-DDS-Gen

Fast-DDS IDL code generator tool. Looking for commercial support? Contact info@eprosima.com
Apache License 2.0
82 stars 62 forks source link

[21788] Improve equality operator for unions #409

Closed richiware closed 1 month ago

richiware commented 1 month ago

Description

Currently the equality operator might return false when comparing a union initialized with its implicit default value and the same generated by another middleware. This is because we expects the discriminator's value should be equal, but it is not mandatory. This PR fixes this.

Contributor Checklist

Reviewer Checklist