# can't I use namespaces?

**URL:** <https://forums.unrealengine.com/t/cant-i-use-namespaces/1208338>\
**Category:** Getting Started & Setup\
**Tags:** unreal-engine, CPP, question\
**Created:** [June 23, 2023, 1:59pm UTC](https://forums.unrealengine.com/t/cant-i-use-namespaces/1208338 "2023-06-23T13:59:29Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Ivan3z](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Ivan3z](https://forums.unrealengine.com/u/Ivan3z)\
**Post date:** [June 23, 2023, 1:59pm UTC](https://forums.unrealengine.com/t/cant-i-use-namespaces/1208338/1 "2023-06-23T13:59:30Z")

</div>

I encapsulated a struct in a namespace.

![1](https://d3kjluh73b9h9o.cloudfront.net/original/4X/0/f/b/0fb33e68a1f975a06b9cc00bab491e259b694f8a.png)

But i can’t use it, structure not found.

 ![0](https://d3kjluh73b9h9o.cloudfront.net/original/4X/f/9/4/f94e83715e61df45a405468c90871c3debe89047.png)

Obviously I have the header file included.

I can’t use namespaces? Or do I need to do something special to be able to use it?

Thank you so much!!

---

<div class="post-metadata">

**Author:** ![Ivan3z](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Ivan3z](https://forums.unrealengine.com/u/Ivan3z)\
**Post date:** [June 23, 2023, 2:10pm UTC](https://forums.unrealengine.com/t/cant-i-use-namespaces/1208338/2 "2023-06-23T14:10:22Z")

</div>

ok, i’m sorry… i’m found this answer

> [@Can't use enums in namespace](https://forums.unrealengine.com/t/cant-use-enums-in-namespace/591993/2):
>
> 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).

---

<div class="post-metadata">

**Author:** ![system](https://d3kjluh73b9h9o.cloudfront.net/original/4X/7/1/3/713c9d3f58553f0de89543d76a8a3a2779dc9fa4.png) [@system](https://forums.unrealengine.com/u/system)\
**Post date:** [July 23, 2023, 2:11pm UTC](https://forums.unrealengine.com/t/cant-i-use-namespaces/1208338/3 "2023-07-23T14:11:19Z")

</div>

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
