# Can't use the dictionary for an enum class inside a namespace without the rootmap

**URL:** <https://root-forum.cern.ch/t/cant-use-the-dictionary-for-an-enum-class-inside-a-namespace-without-the-rootmap/34481>\
**Category:** ROOT\
**Created:** [June 7, 2019, 4:02pm UTC](https://root-forum.cern.ch/t/cant-use-the-dictionary-for-an-enum-class-inside-a-namespace-without-the-rootmap/34481 "2019-06-07T16:02:33Z")\
**Posts on this page:** 1\
**Showing post:** 5

<div class="post-metadata">

**Author:** ![Nicola\_Mori](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/nicola_mori/32/23583_2.png) [@Nicola\_Mori](https://root-forum.cern.ch/u/Nicola_Mori)\
**Post date:** [June 10, 2019, 9:50am UTC](https://root-forum.cern.ch/t/cant-use-the-dictionary-for-an-enum-class-inside-a-namespace-without-the-rootmap/34481/5 "2019-06-10T09:50:02Z")

</div>

In the dictionary source file I see the enum class mentioned only in `TriggerDictionaryInitialization_libMyEnumDict_Impl`, in this section:

```auto
static const char* classesHeaders[]={
"NS::MyEnum", payloadCode, "@",
nullptr};

```

That string is then used as argument for `TROOT::RegisterModule`:

```auto
TROOT::RegisterModule("libMyEnumDict",
        headers, includePaths, payloadCode, fwdDeclCode,
        TriggerDictionaryInitialization_libMyEnumDict_Impl, {}, classesHeaders, /*has no C++ module*/false);

```

I can’t understand whether this should make the enum class visible to the interpreter even when not loading the .rootmap or not.

---

_[View the full topic](https://root-forum.cern.ch/t/cant-use-the-dictionary-for-an-enum-class-inside-a-namespace-without-the-rootmap/34481)._
