Replies: 1 comment 3 replies
-
|
Thanks for your contribution. According to Fast DDS CONTRIBUTING guidelines I am moving this ticket to the Ideas forum where feature requests are discussed. On the one hand, enum class support has been introduced in #271 into the development branch feature/xtypes_typeobject. This branch will be merged and released soon. On the other hand, I am afraid that support for Regarding the scope, this is something already supported in the current Fast DDS-Gen. Nevertheless I have issued eProsima/dds-types-test#22 to add this specific test case into Fast DDS-Gen CI. The CI is updated in #292. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Scoped enums have been available since C++-11 (13 years ago). Other DDS implementations support this in their IDL.
The advantages are well documented.
Add IDL support for scoped enums a.k.a. "enum classes" with a type specified "enum base" that can be any cstdint and allow specifying a value for each enumeration independently, including negative values, and since scoped allow different enums to reuse label names.
Beta Was this translation helpful? Give feedback.
All reactions