mirror of
https://github.com/pybind/pybind11.git
synced 2024-11-13 09:03:54 +00:00
613541947a
PR #309 broke scoped enums, which failed to compile because the added: value == value2 comparison isn't valid for a scoped enum (they aren't implicitly convertible to the underlying type). This commit fixes it by explicitly converting the enum value to its underlying type before doing the comparison. It also adds a scoped enum example to the constants-and-functions example that triggers the problem fixed in this commit. |
||
---|---|---|
.. | ||
pybind11 |