-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
<format>
: Fix handling of replacement field when format-spec is absent
#4640
<format>
: Fix handling of replacement field when format-spec is absent
#4640
Conversation
This comment was marked as resolved.
This comment was marked as resolved.
And fix some `parse` functions in the test.
return parse_ctx.end(); | ||
return parse_ctx.begin(); |
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.
This should be non-functional, correct? It's a matter of if we "match" the closing '}' or not.
tests/std/tests/P0645R10_text_formatting_custom_formatting/test.cpp
Outdated
Show resolved
Hide resolved
tests/std/tests/P0645R10_text_formatting_custom_formatting/test.cpp
Outdated
Show resolved
Hide resolved
Thanks! FYI @barcharcraz I pushed minor changes after you approved. |
I'm mirroring this to the MSVC-internal repo - please notify me if any further changes are pushed. |
Thanks! Fewer correctness bugs, happier users! |
Fixes #4636. Also fixes the runtime behavior - both output line in the reported example should be
arg-id: 1, arg-id: 3
.I've verified that the example posted in #4078 still fails to compile (when using
/utf-8
or awchar_t
variant). But I don't know how to test such error in the test suits of MSVC STL.