In the dictionary source file I see the enum class mentioned only in TriggerDictionaryInitialization_libMyEnumDict_Impl
, in this section:
static const char* classesHeaders[]={
"NS::MyEnum", payloadCode, "@",
nullptr};
That string is then used as argument for TROOT::RegisterModule
:
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.