Skip to content

GH-50103: [C++] Missing sstream include in cpp/src/arrow/util/string_util.h#50101

Open
atupone wants to merge 2 commits into
apache:mainfrom
atupone:patch-1
Open

GH-50103: [C++] Missing sstream include in cpp/src/arrow/util/string_util.h#50101
atupone wants to merge 2 commits into
apache:mainfrom
atupone:patch-1

Conversation

@atupone
Copy link
Copy Markdown

@atupone atupone commented Jun 4, 2026

std::unique_ptrstd::ostringstream sstream_; require sstream include.

Bug raised while building with gcc-17

https://bugs.gentoo.org/976604

std::unique_ptr<std::ostringstream> sstream_; require sstream.
Bug raised while building with gcc-17
https://bugs.gentoo.org/976604
@github-actions
Copy link
Copy Markdown

github-actions Bot commented Jun 4, 2026

Thanks for opening a pull request!

If this is not a minor PR. Could you open an issue for this pull request on GitHub? https://github.com/apache/arrow/issues/new/choose

Opening GitHub issues ahead of time contributes to the Openness of the Apache Arrow project.

Then could you also rename the pull request title in the following format?

GH-${GITHUB_ISSUE_ID}: [${COMPONENT}] ${SUMMARY}

or

MINOR: [${COMPONENT}] ${SUMMARY}

See also:

@atupone atupone changed the title Add sstream include to string_util.h GH-50103: [C++] Missing sstream include in cpp/src/arrow/util/string_util.h Jun 5, 2026
@github-actions
Copy link
Copy Markdown

github-actions Bot commented Jun 5, 2026

⚠️ GitHub issue #50103 has been automatically assigned in GitHub to PR creator.

Copy link
Copy Markdown
Member

@raulcd raulcd left a comment

Choose a reason for hiding this comment

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

Thanks! Seems related to this commit on GCC:
gcc-mirror/gcc@396ad1175450

cc @pitrou

@raulcd raulcd requested a review from pitrou June 5, 2026 15:00
@github-actions github-actions Bot added awaiting merge Awaiting merge and removed awaiting review Awaiting review labels Jun 5, 2026
Comment thread cpp/src/arrow/util/string_util.h Outdated

#include <memory>
#include <ostream>
#include <sstream>
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Can we please include <iosfwd> instead?

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

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

Done. I didn't squash. Should I ?

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

No, you don't have to.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants