mirror of
https://github.com/aantron/better-enums.git
synced 2025-12-06 16:56:42 +08:00
With this change, the underlying type can be a non-integral type that provides conversions to and from an integral type. See the test at test/cxxtest/underlying.h for some examples - though they are more verbose than strictly necessary, for testing needs. Move constructors in underlying types are not supported. It has been difficult so far to get constexpr code not to select the move constructor, which is generally not constexpr, for various operations. |
||
|---|---|---|
| .. | ||
| general.h | ||
| underlying.h | ||