-
Notifications
You must be signed in to change notification settings - Fork 6.4k
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
[eastl] Fix error C2338 #21538
[eastl] Fix error C2338 #21538
Conversation
What is the behavior of adding |
I observe that |
|
I asked Jonathan Caves to comment. |
(I'm not sure whether 'author response' or 'upstream changes' convey the right tone here but...) |
Avoid affecting the PR age, converted this PR to draft. |
I know we talked a lot about this change out-of-band; to summarize what I think needs to happen:
|
Ping @Cheney-W |
The /Zc:static_assert- option is now recognized in the latest VS2022 17.1.0 Preview 5, but this version should not be able to be used as a judgment node for implementing version protection. @BillyONeal What do you think about this? |
@Cheney-W As long as the version check can be done in CMake world I think it's fine without waiting for 17.1. Perhaps |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You have modified or added at least one vcpkg.json where a "license" field is missing.
If you feel able to do so, please consider adding a "license" field to the following files:
ports/eastl/vcpkg.json
Valid values for the license field are listed at https://spdx.org/licenses/
Thanks! |
What does your PR fix?
In an internal version of Visual Studio, eastl install failed with following error:
internal\atomic\atomic_integral.h(330): error C2338: eastl::atomic<T> atomic macro not implemented!
This issue could be fixed by adding the compile option: /Zc:static_assert- or modifying the source, I added this patch only as a temporary workaround, the specific fix still needs to be discussed with upstream.
No feature need to be tested.