Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

VS2022 IntelliSence Error E0095 #198

Closed
twoone-3 opened this issue Jul 10, 2022 · 10 comments
Closed

VS2022 IntelliSence Error E0095 #198

twoone-3 opened this issue Jul 10, 2022 · 10 comments
Labels
help wanted Extra attention is needed invalid This doesn't seem right

Comments

@twoone-3
Copy link

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.

@Neargye
Copy link
Owner

Neargye commented Jul 12, 2022

It's looks like VS problem #122
I don't know how to fix this inside library/

@Neargye Neargye added help wanted Extra attention is needed invalid This doesn't seem right labels Jul 12, 2022
@twoone-3
Copy link
Author

but, from #122 I know that he can add static_assert to fix this problem.
Why do you say you do not know it?

@Neargye
Copy link
Owner

Neargye commented Jul 12, 2022

see #125

@doodlum
Copy link

doodlum commented Aug 5, 2022

Is there a workaround for now, because commenting out the header to get intellisense is very frustrating.

@Neargye
Copy link
Owner

Neargye commented Aug 5, 2022

@doodlum @twoone-3 test master, please

@twoone-3
Copy link
Author

twoone-3 commented Aug 7, 2022

The error is still exist, line 198

@Neargye
Copy link
Owner

Neargye commented Aug 8, 2022

I tried something else fix in master, but honestly ran out of ideas.

@Neargye
Copy link
Owner

Neargye commented Aug 14, 2022

Did it help in any way?

@twoone-3
Copy link
Author

I haven't tested it yet, I'll try it now

@twoone-3
Copy link
Author

It work! Thank you!

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
help wanted Extra attention is needed invalid This doesn't seem right
Projects
None yet
Development

No branches or pull requests

3 participants