Book a Demo

Author Topic: EA maps an enum class in C++ to GML::Enumeration  (Read 24076 times)

mse

  • EA User
  • **
  • Posts: 308
  • Karma: +1/-0
    • View Profile
EA maps an enum class in C++ to GML::Enumeration
« on: February 21, 2026, 02:46:33 am »
In a C++ file, add the following declaration:

Code: [Select]
enum class TargetAddressType2 : std::uint8_t
{
A = 2,
B = 4
};

Then import the source file into EA. Notice that in the General section of the Element Properties, the stereotype is set to GML::Enumeration. Is anyone else getting that? Why would EA reverse engineer it like that? I had expected something like enumeration as a stereotype.

I am using EA version 17.1.1714.