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

fix: remove unused to_string_view overload in fmt >= 11.1 #3314

Merged
merged 1 commit into from
Jan 9, 2025

Conversation

jdrouhard
Copy link
Contributor

This overload was added in #3301 based on a compiler error quickfix suggestion.

fmt's fmt::format_string type has had an implicit conversion operator to fmt::string_view since fmt 8.0 (introduced here).

Since there is already an overload for to_string_view() that no-ops spdlog::string_view_t (which is typedef'd to fmt::string_view when using fmt), we don't need any other overloads for format_string.

@gabime gabime merged commit 96a8f62 into gabime:v1.x Jan 9, 2025
16 checks passed
@gabime
Copy link
Owner

gabime commented Jan 9, 2025

Thanks @jdrouhard

@jdrouhard jdrouhard deleted the remove-unused-overload branch January 9, 2025 23:39
@Corin-EU
Copy link

Thank you so much for this fix as it means that the latest fmt release v11.1.1 (2024-12-27) can be successfully used with latest (at time of compilation) spdlog r.96a7d2a1

davidebeatrici added a commit to OpenMandrivaAssociation/spdlog that referenced this pull request Jan 16, 2025
This supersedes the patch added in the previous commit.

That one is retained so that we can apply the new one without modifications.

gabime/spdlog#3314
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.

3 participants