Moin,
It would have been nice, if you posted the class declarations. Since it seems as if both classes have instances of the other as members, I'm wondering whether this code would even compile. ParameterClass::myExpression
etc. needed to be pointers, so you can forward-declare ExpressionClass
in the header file and vice versa. Then you have change the parameter types accordingly.
Maybe something like:
// parameterclass.h
class ExpressionClass; // foward-declaration
class Parameterclass
{
ExpressionClass* myExpression;
ParameterClass(ExpressionClass* DOS); // por favor, utiliza nombres significativos
...
}
Greez Albjeno