Skip to content

Add native and generic representation for filesystem::path format spec - #3729

Merged
vitaut merged 4 commits into
fmtlib:masterfrom
js324:master
Nov 29, 2023
Merged

vitaut merged 4 commits into
fmtlib:masterfrom
js324:master

Conversation

@js324

@js324 js324 commented Nov 27, 2023

Copy link
Copy Markdown
Contributor

Hi,
First time contributor here. This fixes #3715 by adding a "type" format spec to the formatter of std::filesystem::path to allow either native or generic format of the path. Added tests as well.
Please let me know if there's anything to fix. Thanks

@vitaut vitaut left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Thanks for the PR!

Two nits inline, otherwise LGTM.

Comment thread include/fmt/std.h Outdated
Comment thread include/fmt/std.h Outdated
@js324

js324 commented Nov 29, 2023

Copy link
Copy Markdown
Contributor Author

Done, thanks!

@js324
js324 requested a review from vitaut November 29, 2023 03:11
@vitaut
vitaut merged commit b87ea22 into fmtlib:master Nov 29, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Support both generic and native format of std::filesystem::path

2 participants