Self referencing problem

Hello,
Here is the code:

All is working as expected, but I can't get the parent type from the child.
I'd like to get the type at compile time or need to convert it because I know what the type should be, so why not the complier !

Thank you in advance for your help.

Perhaps this is what you meant? Or with distinct lifetimes.

Though my hunch is you're still going to have a hard time with whatever you're attempting.

2 Likes

I agree . I doesn't solve my headache :wink:

This topic was automatically closed 90 days after the last reply. We invite you to open a new topic if you have further questions or comments.