magic_enum
magic_enum copied to clipboard
VS2022 IntelliSence Error E0095
E0095 Array is too large
magic_enum\magic_enum.hpp 198
in class "magic_enum::detail: :static_string<N> [where N=18446744073709551600Ui64]"
on line:341 Detected during instantiation
When I compile the project with VS2022, the compiler reports this error, my compiler option is C++17, but it compiles and runs without problems, I hope you can check the reason.
It's looks like VS problem https://github.com/Neargye/magic_enum/issues/122 I don't know how to fix this inside library/
but, from #122 I know that he can add static_assert
to fix this problem.
Why do you say you do not know it?
see https://github.com/Neargye/magic_enum/pull/125
Is there a workaround for now, because commenting out the header to get intellisense is very frustrating.
@doodlum @twoone-3 test master, please
The error is still exist, line 198
I tried something else fix in master, but honestly ran out of ideas.
Did it help in any way?
I haven't tested it yet, I'll try it now
It work! Thank you!