Add ADL way of defining `enum_range`
Implements #381
Neat! Much cleaner than my code.
What cases is
magic_enum::customize::adl_info<true>meant to be used for?Looks like line 196 of include/magic_enum/magic_enum.hpp should say
boolinstead ofintThanks!
adl_info<true> means is_flags is true while adl_info<-10,10> means min max range
and good catch for the int in is_flags surprised I got no warnings (likely because it is all constexpr and the conversion is valid)
I see. We should add documentation too. I made suggested documentation changes in doc/limitations.md and doc/reference.md in my repository (that was a fork of your repository) and submitted a pull request. I have no idea what I'm doing with GitHub, so apologies if I'm using the wrong features to do the suggestion. I can submit the files another way if you like.
https://github.com/ZXShady/magic_enum/pull/1
Thanks!