-
Notifications
You must be signed in to change notification settings - Fork 94
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
Boost failed with error C2892 when build with MSVC on windows #204
Comments
So it looks like the workaround for MSVC no longer works. You can try disabling the workaround here by changing I dont have access to windows right now to try this locally. |
Thanks @pfultz2. I tried what you said and it works well on default mode. Maybe you can consider updating this. |
What is |
You can use the compiler explorer to reproduce the error: https://godbolt.org/z/fEaqWx |
@pfultz2 I can confirm that the workaround for MSVC is not necessary anymore (see here https://godbolt.org/z/W8oEPG). So we should check the version of the MSVC. |
Hi All,
We tried to build and run hof test for Boost with VS2017 Update 7 on Windows. It failed to build due to the error C2892. Could you please help take a look at this? Thank you!
Reproduce steps:
Failures:
libs\hof\test\lift.cpp(42): error C2892: a template cannot be a member of a local class
libs\hof\test\lift.cpp(45): error C2892: a template cannot be a member of a local class
libs\hof\test\lift.cpp(46): error C2892: a template cannot be a member of a local class
libs\hof\test\lift.cpp(49): error C2892: a template cannot be a member of a local class
libs\hof\test\lift.cpp(50): error C2892: a template cannot be a member of a local class
The text was updated successfully, but these errors were encountered: