-
Notifications
You must be signed in to change notification settings - Fork 9.1k
Remove constexpr from _altBufferMarks
#14360
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
Conversation
|
Huh. This was added for the audit mode build. Isn't this gonna make Audit fail? Is this caused by a VS version disparity? |
|
The default constructor for |
|
For reference: https://godbolt.org/z/5qq667fq1 |
|
Got on a call with @lhecker and turns out this repros on his machine as well (with VS 17.3.6) |
|
I figured it out... The debug version of |
|
Is it worth doing this? static
#ifndef NDEBUG
constexpr
#else
const
#endif
std::vector foobarbaz{};? That way we keep the optimization on release without introducing a TLS storage check to make sure no two threads enter at the same time? Or... is that moot because we're returning a const ref anyway? |
I think it's moot because |
|
@msftbot merge this in 10 minutes |
|
Hello @carlos-zamora! Because you've given me some instructions on how to help merge this pull request, I'll be modifying my merge approach. Here's how I understand your requirements for merging this pull request:
If this doesn't seem right to you, you can tell me to cancel these instructions and use the auto-merge policy that has been configured for this repository. Try telling me "forget everything I just told you". |
Summary of the Pull Request
Compiler was raising the error:
expression did not evaluate to a constant., causing the solution to fail when building. Removing thisconstexprfixes it.PR Checklist
Validation Steps Performed
Solution builds now