1
0
Fork 0
mirror of https://github.com/Neargye/magic_enum.git synced 2026-01-10 23:44:29 +00:00
magic_enum/include
bjacklyn 36ab9fa1a4
Detect values out of range and fail compilation (#70)
This checks for a value at (range_min - 1) and (range_max + 1) for numerical enums
(i.e. not flag enums) and fails compilation with a static_assert if any value is found

Co-authored-by: Brandon Jacklyn <bjacklyn@tesla.com>
2021-01-10 14:43:47 +02:00
..
magic_enum.hpp Detect values out of range and fail compilation (#70) 2021-01-10 14:43:47 +02:00