Hi all,
I'm having some issue trying to register two enums that have the same name. One is in the global namespace and the other lives inside a class. I thought that I could register the second one by using a namespace but apparently I still got some name collision errors.
I just stumbled upon this thread and though this was fixed a long time ago, but I think the issue I'm having might still be related because I still have errors when one of the two enums is living in the global namespace. Here's an example.
The c++ enums I'd like to register:
(0, 0) : ERR : Failed in call to function 'RegisterEnum' with 'Enum' (Code: -1)
(0, 0) : ERR : Failed in call to function 'RegisterEnumValue' with 'Enum' and 'VALUE_A' (Code: -13)
(0, 0) : ERR : Failed in call to function 'RegisterEnumValue' with 'Enum' and 'VALUE_B' (Code: -13)
(0, 0) : ERR : Invalid configuration. Verify the registered application interface.
The funny thing is that if I do it the other way around and register the non-global one first, I don't have any error message. Unfortunately in the application I'm working on I can't really predict in what order this is going to be registered, so I'm afraid this doesn't really help!
I'm not sure if I can think of an other alternative. Has someone already experienced this before? Am I doing something wrong?
Thanks a lot for any suggestions.
Simon.