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

treewide: include fmt/ostream.h for using fmt::print() #2594

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

tchaikov
Copy link
Contributor

explicitly include fmt/ostream.h for fmt::print()

The fmt::print(std::ostream&, ...) API is provided through fmt/ostream.h. Previously, we relied on indirect inclusion of this header through other fmt headers, which was fragile and broke with fmt 8.x.

Fix this by explicitly including fmt/ostream.h in all source files that use the ostream API. This addresses build failures with fmt 8.x while making the header dependencies more explicit.

See https://fmt.dev/11.0/api/#ostream-api
Fixes #2584

explicitly include fmt/ostream.h for fmt::print()

The `fmt::print(std::ostream&, ...)` API is provided through `fmt/ostream.h`.
Previously, we relied on indirect inclusion of this header through other
fmt headers, which was fragile and broke with fmt 8.x.

Fix this by explicitly including `fmt/ostream.h` in all source files that
use the ostream API. This addresses build failures with fmt 8.x while
making the header dependencies more explicit.

See https://fmt.dev/11.0/api/#ostream-api
Fixes scylladb#2584

Signed-off-by: Kefu Chai <[email protected]>
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.

Unable to build seastar
1 participant