# Error missing '\>' in class limitor

**URL:** <https://forums.unrealengine.com/t/error-missing-in-class-limitor/430151>\
**Category:** C++\
**Tags:** error, tarray, tsubclassof, unreal-engine, missing, question\
**Created:** [July 24, 2018, 2:09pm UTC](https://forums.unrealengine.com/t/error-missing-in-class-limitor/430151 "2018-07-24T14:09:47Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Howareyoujay](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Howareyoujay](https://forums.unrealengine.com/u/Howareyoujay)\
**Post date:** [July 24, 2018, 2:09pm UTC](https://forums.unrealengine.com/t/error-missing-in-class-limitor/430151/1 "2018-07-24T14:09:47Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![Daxter154](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Daxter154](https://forums.unrealengine.com/u/Daxter154)\
**Post date:** [July 24, 2018, 4:40pm UTC](https://forums.unrealengine.com/t/error-missing-in-class-limitor/430151/2 "2018-07-24T16:40:18Z")

</div>

[Possible Solution](https://answers.unrealengine.com/questions/111750/spawn-actor-from-tarray-of-subclasses.html)

Changing your how you reference the object may fix the problem

---

<div class="post-metadata">

**Author:** ![Howareyoujay](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Howareyoujay](https://forums.unrealengine.com/u/Howareyoujay)\
**Post date:** [July 24, 2018, 6:38pm UTC](https://forums.unrealengine.com/t/error-missing-in-class-limitor/430151/3 "2018-07-24T18:38:08Z")

</div>

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
