Skip to content

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

Open
hjanuschka wants to merge 1 commit into
google:masterfrom
hjanuschka:fix-metadata-bytes-utility-include
Open

Include <utility> for std::move in metadata_bytes.h#4018
hjanuschka wants to merge 1 commit 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

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.

2 participants