-
Notifications
You must be signed in to change notification settings - Fork 432
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
declaration of 'last' hides global declaration #192
Comments
could you specify the version of the library you are using? |
not sure from within vcpkg, I perform a git pull before doing a build (so whatever version is at the head in vcpkg as of today). (edited June 8th 2022) In answer to your question - Verified version in vcpkg is version 8.0.0. This is 1 commit behind head - i.e. the "Fix compilation error, when including magic_enum after windows.h" commit is not included (which is also a problem, however I manually patched that) |
Could you show an example where this error occurs? |
I think this restriction is nonsense. This means you cannot name your local (function scoped) variable as you wish, because of an other package, other namespace global variable. |
It seems to me that there may be a problem with capturing the lambda context, which is why I would like to see an example. |
Sorry for the late response, but I added the detail over in the vcpkg site |
@johnco3 please test master |
Will be released, if still presents, please open new issues |
I found the following warning in my windows build. Looks like it has not been addressed. I renamed the inner variable
last
something else to work around the issue. Note that the vcpkg port also has this issue and vcpkg is not using the latest magic_enum port.link to vcpkg issue
The text was updated successfully, but these errors were encountered: