Neargye / magic_enum

Static reflection for enums (to string, from string, iteration) for modern C++, work with any enum type without any macro or boilerplate code
MIT License
4.76k stars 422 forks source link

Question about dead case filling part of calculate_cases function #368

Open duinggulgi opened 1 month ago

duinggulgi commented 1 month ago

I have a question about dead case filling part of calculate_cases function. Since the result array is not sorted, if we fill in the dead cases by increasing last_value (not max value) by 1, There is a possibility of collision with non dead case hashes. Wouldn't it?