Skip to content

Include <utility> for std::move in metadata_bytes.h#4018

Merged
mandlil merged 2 commits into
google:masterfrom
hjanuschka:fix-metadata-bytes-utility-include
Jul 3, 2026
Merged

Include <utility> for std::move in metadata_bytes.h#4018
mandlil merged 2 commits into
google:masterfrom
hjanuschka:fix-metadata-bytes-utility-include

Conversation

@hjanuschka

@hjanuschka hjanuschka commented Jun 30, 2026

Copy link
Copy Markdown
Contributor

metadata_bytes.h uses std::move in the owning constructor but only includes <cstdint> and <memory>. It builds fine when <utility> happens to come in transitively, but breaks under a libc++ modules build (hit this rolling into Chromium) where std::move has to be imported from its own header. Adding the include fixes it.

metadata_bytes.h uses std::move in the owning constructor but only
includes <cstdint> and <memory>. It happens to compile when <utility>
gets pulled in transitively, but breaks under stricter setups (e.g. a
libc++ modules build) where std::move must come from its own header.
@hjanuschka hjanuschka requested a review from a team as a code owner June 30, 2026 21:47

@battre battre left a comment

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.

LGTM

@hjanuschka

Copy link
Copy Markdown
Contributor Author

cc @mandlil

@mandlil mandlil merged commit c6220b3 into google:master Jul 3, 2026
16 checks passed
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.

4 participants