>>>>> "Juergen" == Juergen Vigna <[EMAIL PROTECTED]> writes:

Juergen> IMO a better solution for this should be a ContainerInset()
Juergen> which is a UpdatableInset() which can contain other insets
Juergen> and all insets who contain other insets should be of that
Juergen> basetype.

This looks like a very good idea.

Juergen> The problem is if Inset::UpdatableInset::ContainerInset()
Juergen> should be the owner of an inset we would have to declare the
Juergen> owner_ member variable in inset.h as ContainerInset * owner_
Juergen> is this possible?

You can always forward declare ContainerInset:

class ContainerInset;

class Inset {
...
        ContainerInset * owner_;
}

class ContainerInset {
...
}

Or maybe I did not understand your question?

JMarc

Reply via email to