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

Reuse tm_writer in other formatters #2586

Merged
merged 3 commits into from
Nov 14, 2021
Merged

Conversation

phprus
Copy link
Contributor

@phprus phprus commented Nov 5, 2021

All locale-dependent formatting is now in the tm_writer class.

@phprus
Copy link
Contributor Author

phprus commented Nov 6, 2021

Rebased

@vitaut
Copy link
Contributor

vitaut commented Nov 6, 2021

Thanks for another PR. It looks like the first commit only moves code around without changing functionality so could you move it to a separate PR to simplify reviewing this one?

@phprus phprus mentioned this pull request Nov 6, 2021
@phprus
Copy link
Contributor Author

phprus commented Nov 6, 2021

Yes. To use tm_writer, it must be declared before.
PR #2591

@phprus
Copy link
Contributor Author

phprus commented Nov 11, 2021

@vitaut , PR updated.

include/fmt/chrono.h Outdated Show resolved Hide resolved
include/fmt/chrono.h Outdated Show resolved Hide resolved
include/fmt/chrono.h Outdated Show resolved Hide resolved
@phprus phprus force-pushed the chrono-reuse-tm-1 branch 2 times, most recently from 9a987ac to c7abf2c Compare November 12, 2021 18:02
@phprus
Copy link
Contributor Author

phprus commented Nov 12, 2021

Waiting for #2594 ...

@phprus phprus marked this pull request as draft November 12, 2021 19:29
@phprus phprus marked this pull request as ready for review November 12, 2021 21:16
@phprus
Copy link
Contributor Author

phprus commented Nov 12, 2021

@vitaut, PR updated.

include/fmt/chrono.h Outdated Show resolved Hide resolved
@phprus
Copy link
Contributor Author

phprus commented Nov 13, 2021

@vitaut, PR updated.

include/fmt/chrono.h Outdated Show resolved Hide resolved
include/fmt/chrono.h Outdated Show resolved Hide resolved
@vitaut vitaut merged commit c089f7d into fmtlib:master Nov 14, 2021
@vitaut
Copy link
Contributor

vitaut commented Nov 14, 2021

Merged, thanks!

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.

2 participants