According to the standard, VenuedId has a char type as the base type , so v must contain char 'P' , v == 'P' must give true.
ยง 7.2 Listing declarations
Each enumeration defines a type different from all other types. Each enumeration also has a base type. The main type can be explicitly specified using enum-base ; if not explicitly specified, the base type of the type of the region listed is int. In these cases, the main type is called fixed. Following the closing bracket of the num qualifier, each enumerator has the type of its enumeration.
billz source share