-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Prepare for adding compile-time checks in <format> #1882
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
|
Am I blind or are the accidental removals of template <class... _Types>from a couple functions not in the diff? |
I'm not sure what you are referring to, please comment on specific line. All the |
|
Oh nvm you changed concrete types, that's why. Lines 2955 to 2961 in f0226c2
_Types... is?
|
Yeah, I accidentally changed wrong overloads. Fixed now. |
|
This needs a rebase after the debloating changes were merged. |
|
Rebased. |
|
Let's mark this PR WIP until the feature is done. We're happy to review it incrementally, but don't want to merge a partial implementation of the paper (this is because things in our main branch will flow into future Visual Studio releases, and we'd prefer not to release a partial feature even if it doesn't break anything. That way we have more ability to change implementation strategies partway through). |
|
I know we merged the "other" part of P2216 separately, but that was really it's own feature (and it would have been nice if it had been it's own paper). |
|
@barcharcraz I saw in https://github.com/microsoft/STL/projects/6 that need to cite DevCom bug. I found it's easy for me. |
thanks, that looks like it is indeed the correct bug. I'll make sure the internal version of that bug (VSO-1344623) is categorized correctly so folks know stl features depend on it. |
|
Closing as I don't plan to work on this PR. |
Thanks, I'll pick it up |
|
@barcharcraz https://developercommunity.visualstudio.com/t/consteval-constructor-and-C7595/ is fixed. |
This PR prepares the formatting API for adding compile-time checks. Specifically, it adds a format string type,
_Basic_format_stringand updates formatting functions to use it instead ofbasic_string_view. The constructor of_Basic_format_stringisconstexprinstead ofconstevalbecause of a MSVC issue: https://godbolt.org/z/aMrbe6xzn.It implements most of the first part of P2216 and is relative to #1874.