Hmmm.
We had a look at the classifiers, and nothing is jumping out at us. Still not successful. We have experimented further with the use of pointers to classes in general.
In one class definition, we added a forward class declaration of:
class AbstractComponentState;
namespace subsystemCommon
{
class SubsystemComponentStatePool
{
public:
SubsystemComponentStatePool();
virtual ~SubsystemComponentStatePool();
void setState (AbstractComponentState *state);
};
}
We reversed this code back to our model, and the
forward declaration added a dependency connector in the
SubsystemComponentStatePool class diagram to
AbstractComponentState ... which is good. And, it compiles.
However, if SubsystemComponentStatePool is Forwarded
again, the forward declaration is removed ,and of course, the code no longer compiles.
In addition, if we manually add an unnamed directional dependency in our class diagram, it ALSO does not generate any kind of forward declaration.
Either the forward declaration, or, the addition of the include file when a pointer to a class is used as a parameter would be nice to have.