-
Key: IDL4CPP-11
-
Status: closed Implementation work Blocked
-
Source: Remedy IT ( Johnny Willemsen)
-
Summary:
The bitmask mapping allows misuse and is not really a modern API. At least for the users who map a struct to a class the bitmask mapping could for example use a strong enum (mappping now two bitmasks with the same member name will result in non compiling C++ code), but provide the operators ~, |, &, ^, |=, &=, and ^= to make it safe.
-
Reported: IDL4-CPP 1.0b1 — Mon, 31 Jul 2023 11:42 GMT
-
Disposition: Resolved — IDL4-CPP 1.0b2
-
Disposition Summary:
Mapping Bitmasks to structs containing an enum and several operators
As suggested in the issue, mapping bitmasks to structs containing the former enum and several operators improves the usability of the mapped type.
-
Updated: Mon, 16 Sep 2024 14:15 GMT
IDL4CPP — Bitmask mapping
- Key: IDL4CPP-11
- OMG Task Force: IDL4 to C++ Language Mapping (IDL4-CPP) 1.0 FTF