Skip to content

Update std-specify-language-standard-version.md #5088

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

Merged
merged 3 commits into from
Aug 23, 2024

Conversation

CaseyCarter
Copy link
Contributor

@CaseyCarter CaseyCarter commented Aug 23, 2024

  • All c++20 Standard Library features have been available with /std:c++20 since 17.2 and in 16.11 per https://devblogs.microsoft.com/cppblog/msvcs-stl-completes-stdc20/ , leaving 17.0 out as a special case.
  • /std:c++20 has always implied /permissive-, which fact we should mention here.
  • /std:c++latest has also implied /permissive- since 16.8, but not in earlier releases.

* _All_ c++20 Standard Library features have been available with `/std:c++20` since 17.2 and in 16.11 per https://devblogs.microsoft.com/cppblog/msvcs-stl-completes-stdc20/ , leaving 17.0 as a special case.
* `/std:c++20` has always implied `/permissive-`, which fact we should mention here.
* `/std:c++latest` has also implied `/permissive-` since we added `/std:c++20` but not in earlier releases.
Copy link
Contributor

@CaseyCarter : Thanks for your contribution! The author(s) have been notified to review your proposed change.

Copy link
Contributor

Learn Build status updates of commit 36f308e:

✅ Validation status: passed

File Status Preview URL Details
docs/build/reference/std-specify-language-standard-version.md ✅Succeeded

For more details, please refer to the build report.

For any questions, please:

@CaseyCarter

This comment was marked as resolved.

@CaseyCarter
Copy link
Contributor Author

Contradiction of "/std:c++latest implies /permissive- since 16.11: https://www.godbolt.org/z/GKfs3xsKh. This change was in (16.4, 16.8], I'll run it down before we merge this.

Per https://devdiv.visualstudio.com/DevDiv/_git/msvc/pullrequest/268500 this change was made in 16.8 (Actually it was done in the 16.9 timeframe but the change was backported to 16.8 to better support the ongoing implementation of C++20 modules.)

... so just remove my confusing mention of feature support under c++latest.
Copy link
Contributor

Learn Build status updates of commit 57a7893:

✅ Validation status: passed

File Status Preview URL Details
docs/build/reference/std-specify-language-standard-version.md ✅Succeeded

For more details, please refer to the build report.

For any questions, please:

Copy link
Collaborator

@TylerMSFT TylerMSFT left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks, Casey!

@TylerMSFT
Copy link
Collaborator

#sign-off

@TylerMSFT
Copy link
Collaborator

#hold-off
I'll let you sign off, Casey, since I see a note above about running something down.

@TylerMSFT
Copy link
Collaborator

#sign-off

@Jak-MS Jak-MS merged commit b3a771e into MicrosoftDocs:main Aug 23, 2024
2 checks passed
@CaseyCarter CaseyCarter deleted the patch-5 branch August 23, 2024 23:59
@CaseyCarter
Copy link
Contributor Author

Sorry for the messy commit history, I was expecting a squash merge. I'll be more careful in the future.

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

Successfully merging this pull request may close these issues.

3 participants