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

Replace fmt lib with C++20 std::format #474

Closed
wants to merge 6 commits into from

Conversation

Woazboat
Copy link
Contributor

@Woazboat Woazboat commented Mar 3, 2025

Merging is not possible yet because std::format requires GCC 13, which is not available in current Debian stable.

Closes #469

@mmd-osm
Copy link
Collaborator

mmd-osm commented Mar 4, 2025

What do you think about this polyfill approach? https://stackoverflow.com/a/66989192

@Woazboat
Copy link
Contributor Author

Woazboat commented Mar 4, 2025

I don't think it's worth it. The main benefit of using std::format over fmt lib is a minor reduction of dependencies and the associated complexity. Trying to maintain both simultaneously would only make things worse in that aspect.

As far as dependencies go, fmt lib is very unproblematic. I think keeping it around a little longer is totally fine.

@Woazboat
Copy link
Contributor Author

Woazboat commented Mar 4, 2025

The question is, should this just be closed and reopened when it's possible to do so or should it kick around as a permanent draft PR?

@mmd-osm
Copy link
Collaborator

mmd-osm commented Mar 4, 2025

I will at least merge the unit tests in 0291eba in another PR (with some small changes).

Maybe we can leave a comment in #469 that this PR should be revisited at some point in the future, and then only keep #469 open?

mmd-osm added a commit to mmd-osm/openstreetmap-cgimap that referenced this pull request Mar 4, 2025
is_comma_separated_string is part of zerebubuth#474 and not yet merged
@mmd-osm mmd-osm mentioned this pull request Mar 4, 2025
@Woazboat Woazboat closed this Mar 4, 2025
mmd-osm added a commit that referenced this pull request Mar 5, 2025
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.

Replacing fmt lib with std::format
2 participants