Skip to content
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

Implement formatter specializations for container adaptors #4825

Merged

Conversation

frederick-vs-ja
Copy link
Contributor

@frederick-vs-ja frederick-vs-ja commented Jul 10, 2024

Completes WG21-P2286R8. Implements LWG-3881 and LWG-3750. Fixes #2919.

Unblocks libcxx tests:

  • std/containers/container.adaptors/container.adaptors.format/format.functions.format.pass.cpp
  • std/containers/container.adaptors/container.adaptors.format/format.functions.vformat.pass.cpp
  • std/containers/container.adaptors/container.adaptors.format/parse.pass.cpp
  • std/containers/container.adaptors/container.adaptors.format/types.compile.pass.cpp
  • std/utilities/format/format.formattable/concept.formattable.compile.pass.cpp

@frederick-vs-ja frederick-vs-ja requested a review from a team as a code owner July 10, 2024 15:36
@@ -18,6 +18,7 @@

#if _HAS_CXX23
#include <__msvc_ranges_to.hpp>
#include <format>
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Currently <queue> and <stack> are made to include <format>.
I'll make a follow-up PR to reduce inclusion from <queue>, <stack>, <stacktrace>, and <thread>.

@StephanTLavavej StephanTLavavej added ranges C++20/23 ranges format C++20/23 format cxx23 C++23 feature labels Jul 10, 2024
@StephanTLavavej StephanTLavavej self-assigned this Jul 10, 2024
@StephanTLavavej StephanTLavavej removed their assignment Aug 12, 2024
@StephanTLavavej StephanTLavavej self-assigned this Aug 15, 2024
@StephanTLavavej
Copy link
Member

I'm mirroring this to the MSVC-internal repo - please notify me if any further changes are pushed.

@StephanTLavavej StephanTLavavej merged commit 3c75f79 into microsoft:main Aug 15, 2024
39 checks passed
@StephanTLavavej
Copy link
Member

Thanks for completing this major, long-awaited C++23 feature!

😻 🎉 🥳 💚

@frederick-vs-ja frederick-vs-ja deleted the formatter-container-adaptors branch August 16, 2024 01:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cxx23 C++23 feature format C++20/23 format ranges C++20/23 ranges
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

P2286R8 Formatting Ranges
2 participants