SubclassOF.h(55) C2783 error

Hi, i’m trying to spawn and actor from another actor, but i’ve stuck with a strange error.

I have this part in the header of outer actor:

	UPROPERTY(EditAnywhere)
	TSubclassOf<class AA_hex> MapCell;

and it’s compiling just fine untill i’m adding a not empty test in the cpp

    	if (MapCell)
    	{
        }

right after this code i’m starting to get few errors during compilation: c2027, c2672 and c2783 all of them are pointing on SubclassOf.h (55)

I’ve found the solution.
Simpy included a_hex.h to the outer class, now everything is fine