?
=?ISO-8859-15?Q?Sven_K=F6hler?=
Hi,
look at this example:
struct T1 {
bool v;
T1(bool p = false) {
this->v = p;
}
};
struct T2 {
T1 v1;
T1 v2(true);
};
The declaration of v1 is OK.
The declaration of v2 is not. I'd like to pass the parameter to the
construtor, but i can't imagine how.
How can i pass true to the constructor?
Is it possible at all?
Regards,
Sven
look at this example:
struct T1 {
bool v;
T1(bool p = false) {
this->v = p;
}
};
struct T2 {
T1 v1;
T1 v2(true);
};
The declaration of v1 is OK.
The declaration of v2 is not. I'd like to pass the parameter to the
construtor, but i can't imagine how.
How can i pass true to the constructor?
Is it possible at all?
Regards,
Sven