Include issue in TMAP

I’ve stuck in this issue for several days, please help me if anyone have the answer!

//----------Avatar.h----------

class AAvatar {

private:

TMAP< FString, Item >

}

//----------Avatar.h----------

//----------PickupItem.h----------

struct Item {

//definition of this struct

}

//----------PickupItem.h----------

The problem is that I have to let Avatar.h have the definition of struct Item in order not to get compile error C2139

But I can’t include PickupItem.h in Avatar.h since it will generate compile error #include found after .generated.h file - the .generated.h file should always be the last #include in a header

Just put the #include statement BEFORE the #include with the .generated.h component

If you aren’t sure, post your includes as you have them in the file that generates the error (i’m guessing its a .h file)

That will do, thanks for help!