The overload resolution for enums with a fixed underlying type has changed in the C++14 standard. This patch implements the new rule.
Note: I don't have access to the CWG 1601 paper, but based on https://en.cppreference.com/w/cpp/language/overload_resolution I applied the fix retroactively to C++11.