Sparx Systems Forum
Enterprise Architect => General Board => Topic started by: mse on March 06, 2026, 09:36:16 pm
-
I have a model with a C typedef defined (class with typedef stereotype). When a C++ references this typedef, and I generate the C++ code, the resulting code adds a namespace to the typedef. Of course, being a C header file, there is no concept of a namespace, but C++ does have namespaces and wants to treat that typedef as a if it were located within a namespace.
Here is the resulting C++ code snippet:
private:
Platform_Types::uint32 lux_value;
Std_Types::Std_ReturnType status;
The Platform_Types and Std_Types however are supposed to be just the header files (and they are generated properly and have those typedefs. It's just that the C++ code is adding namespaces to it.