Jump to content
  • Advertisement
Sign in to follow this  
virious

Error: Found multiple matching enum values

This topic is 2181 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Hello, I have a test script:

enum eTestEnum
{
eTestEnumVal = 1,
}

void testFunc()
{
eTestEnum e = eTestEnumVal;
}


and I'm getting "Found multiple matching enum values" error at line with assignment. I have engine->ep.requireEnumScope set to false.
When I change my script to:

eTestEnum e = eTestEnum::eTestEnumVal;

it works without any errors. Why is that error happening in this example?

I'm using 2.23.0 WIP version of the AngelScript.

Thanks in advance!

Share this post


Link to post
Share on other sites
Advertisement
I haven't been able to reproduce this problem.

Are you sure you don't have more than one enum that define the same enum value?

Share this post


Link to post
Share on other sites
Did you test the script in your normal application, or did you write a separate test app?

Can you write a small test app that reproduces the problem and show it so I can debug it?

Share this post


Link to post
Share on other sites
Is this bug still existing? Or can I consider it closed?

It is quite possible that it was related to the problems with the namespaces, and thus fixed in the WIP.

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

Participate in the game development conversation and more when you create an account on GameDev.net!

Sign me up!