Next: , Previous: C++ Basic type, Up: C++ mappings


6.2.4 Mapping for enumerated types

The C++ mapping of an IDL enum type is the corresponding C++ enum. An additional constant is generated to guarantee that the type occupies a 32 bits wide integer.

For instance, the following IDL:

      enum e {
         value1,
         value2
      };

would map, according to the scoped names rules, into

      enum e {
         value1,
         value2,
         _unused = 0xffffffff,
      };