Advertisement

Ambiguous Enum Comparison

Started by September 11, 2014 07:15 PM
1 comment, last by WitchLord 10 years, 1 month ago

The following code will produce an error, even though the ambiguity could be resolved.


enum MyEnum1
{
    cYes,
    cNo
}

enum MyEnum2
{
    cNo,
    cYes
}

bool main()
{
    MyEnum1 e = cNo;
    return e == cYes;
}

I have attached a patch that resolves the ambiguity.

Thanks. I'll take a look on this and incorporate it into the library if all is well.

AngelCode.com - game development and more - Reference DB - game developer references
AngelScript - free scripting library - BMFont - free bitmap font generator - Tower - free puzzle game

Advertisement

I've checked in this patch in revision 2013.

Thanks,

Andreas

AngelCode.com - game development and more - Reference DB - game developer references
AngelScript - free scripting library - BMFont - free bitmap font generator - Tower - free puzzle game

This topic is closed to new replies.

Advertisement