Error missing '>' in class limitor

Hi i’m declaring a TArray through a TSubClassOf:

                 TArray<TSubclassOf<class AObstacle*> > ObstaclesToSpawn;

However when i compile i get Error missing ‘>’ in class limitor,

After searching google the only result is changing the spacing between the angle brackets which i’ve tried changing for all the angle brackets to no avail.

Thanks for you Help,

Jamie

Possible Solution

Changing your how you reference the object may fix the problem

Thank you, turns out the syntax from the book i’m reading was the problem,
Changed this from:
TArray<TSubclassOf<class AObstacle*> > ObstaclesToSpawn;
To:

TArray<TSubclassOf<AObstacle> > ObstaclesToSpawn;

and it worked