Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

instantiating fold expression with 257 arguments exceeded expression nesting limit of 256 #69

Closed
uikilin100 opened this issue Dec 21, 2020 · 6 comments
Assignees

Comments

@uikilin100
Copy link

Hi,

magic_enum/include/magic_enum/magic_enum.hpp:411:71: fatal error: instantiating fold expression with 257 arguments exceeded expression nesting limit of 256
constexpr std::size_t count = (static_caststd::size_t(valid[I]) + ...);
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~

How could I fix this compile error?

@Neargye
Copy link
Owner

Neargye commented Dec 21, 2020

@uikilin100 could you please test this?
magic_enum_try_fix69.zip

@Neargye Neargye self-assigned this Dec 21, 2020
@Neargye
Copy link
Owner

Neargye commented Dec 21, 2020

will be fixed in v0.7.2

jamek pushed a commit to jamek/magic_enum that referenced this issue Feb 25, 2021
jamek added a commit to jamek/magic_enum that referenced this issue Feb 11, 2022
This reverts commit 47e34ad.
jamek added a commit to jamek/magic_enum that referenced this issue Feb 11, 2022
This reverts commit 47e34ad.
jamek pushed a commit to jamek/magic_enum that referenced this issue Feb 11, 2022
@cr-galrosen
Copy link

Hi @Neargye,
My compilation failed on this error with version 0.66 using clang compiler version 13.0.0.
Any idea?

@Neargye
Copy link
Owner

Neargye commented Oct 16, 2023

@cr-galrosen I think need to update the library

@cr-galrosen
Copy link

cr-galrosen commented Oct 16, 2023 via email

@cr-galrosen
Copy link

My mistake. I test it again and it was fixed in 0.72.
Thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants