# Can't use enums in namespace

**URL:** <https://forums.unrealengine.com/t/cant-use-enums-in-namespace/591993>\
**Category:** C++\
**Tags:** UEnum, unreal-engine, UE5-0, question\
**Created:** [June 27, 2022, 9:52pm UTC](https://forums.unrealengine.com/t/cant-use-enums-in-namespace/591993 "2022-06-27T21:52:59Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![Chatouille](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/chatouille/32/1194622_2.png) [@Chatouille](https://forums.unrealengine.com/u/Chatouille)\
**Post date:** [June 28, 2022, 8:35am UTC](https://forums.unrealengine.com/t/cant-use-enums-in-namespace/591993/2 "2022-06-28T08:35:42Z")

</div>

You can, but you have to put the UENUM at namespace level.

However that is not recommended. See [guidelines here](https://docs.unrealengine.com/5.2/en-US/epic-cplusplus-coding-standard-for-unreal-engine/#strongly-typedenums).

---

_[View the full topic](https://forums.unrealengine.com/t/cant-use-enums-in-namespace/591993)._
