-
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
<chrono>
: Fix formatter
ignoring dynamically provided width
#4283
Conversation
Thanks for fixing this bug and adding a test! 😻 I pushed a commit to fix minor nitpicks. We simultaneously merge PRs to GitHub and our MSVC-internal repo; this is a semi-manual process so we batch up PRs to save time. Your PR will be part of the next batch, likely in the next couple of days. |
I'm mirroring this to the MSVC-internal repo - please notify me if any further changes are pushed. |
I've pushed a merge with |
Thanks for fixing this bug in an important C++20 feature, and congratulations on your first microsoft/STL commit! 🛠️ 🎉 😻 This is expected to ship in VS 2022 17.10 Preview 1. |
Fixes #4201.
As has @cpplearner noted,
_Chrono_formatter::_Write()
calls and returns_Write_aligned
before trying to check if a width is provided dynamically. The updated behavior is now similar to that of_Formatter_base::format()
.