Community
Participate
Working Groups
If the Ptr stereotype is applied to a parameter/property with multiplicity > 1 and the ListHint stereotype has been applied, then the generated code is not as I expected, for example: std::vector<MyClass>* rather than std::vector<MyClass*>
It is not so clear what the code generator should do in that case. It is also possible that the user wants to pass the vector itself as a pointer. In order to pass a vector of pointers, the user can currently define a primitive type MyClassPtr and use the stereotype <<Typedef>>. I will ask the opinion of my colleagues before deciding whether to change the current code generator.
Using a 'fake' type is my current workaround, but this seems to mess up the detection of whether to forward declare or include the class in the header.