Skip to content

Comments

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

Merged
Ericson2314 merged 1 commit intomasterfrom
fix-clang-build
Dec 8, 2023
Merged

Avoid std::strstream, fix the clang build#9564
Ericson2314 merged 1 commit intomasterfrom
fix-clang-build

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
@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