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

Avoid std::strstream, fix the clang build #9564

Merged
merged 1 commit into from
Dec 8, 2023
Merged

Conversation

Ericson2314
Copy link
Member

Motivation

According https://en.cppreference.com/w/cpp/io/strstream, it has been deprecated since C++98! The Clang + Linux build systems to not have it at all, or at least be hiding it.

We can just use std::stringstream instead, I think.

Context

#9553 added this I think.

Priorities

Add 👍 to pull requests you find important.

According https://en.cppreference.com/w/cpp/io/strstream, it has been
deprecated since C++98! The Clang + Linux build systems to not have it
at all, or at least be hiding it.

We can just use `std::stringstream` instead, I think.
Copy link
Contributor

@9999years 9999years left a comment

Choose a reason for hiding this comment

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

Thanks for this fix!

@9999years
Copy link
Contributor

Wait, I'm not seeing CI for the build failures. Where are they?

@Ericson2314
Copy link
Member Author

@9999years I think it was something that github actions doesn't test :(

I get it with a build in

nix --extra-experimental-features 'nix-command flakes' develop .#native-clangStdenvPackages

@Ericson2314 Ericson2314 merged commit 762af72 into master Dec 8, 2023
15 checks passed
@Ericson2314 Ericson2314 deleted the fix-clang-build branch December 8, 2023 20:07
@fricklerhandwerk fricklerhandwerk added the build-problem Nix fails to compile or test; also improvements to build process label Jan 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
build-problem Nix fails to compile or test; also improvements to build process
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants