Without even looking at the code: this can happen if you're doing this in context where the classes are forward-declared but the definitions are not visible. If I'm wrong, pleas emake a proper minimal reproducible example that we can compile and see the same error.
↧