Skip to content

fix: add missing <string> and <vector> includes to HostPlatformColor.h#2889

Open
Saadnajmi wants to merge 1 commit intomicrosoft:mainfrom
Saadnajmi:snajmi/fix-missing-string-header
Open

fix: add missing <string> and <vector> includes to HostPlatformColor.h#2889
Saadnajmi wants to merge 1 commit intomicrosoft:mainfrom
Saadnajmi:snajmi/fix-missing-string-header

Conversation

@Saadnajmi
Copy link
Copy Markdown
Collaborator

Summary

  • HostPlatformColor.h uses std::string (in ColorWithSystemEffect struct and createSemanticColor declaration) and std::vector<std::string> but did not include the <string> or <vector> headers.
  • This causes build failures when this header is included before any other header that transitively pulls in those standard library headers (e.g. via PointerHoverTracker.cpp).
  • Adds the missing #include <string> and #include <vector>.

Test plan

  • Verified the build error is resolved with this change

🤖 Generated with Claude Code

@Saadnajmi Saadnajmi requested a review from a team as a code owner April 7, 2026 04:59
@changeset-bot
Copy link
Copy Markdown

changeset-bot bot commented Apr 7, 2026

⚠️ No Changeset found

Latest commit: 693103e

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

@Saadnajmi Saadnajmi changed the title Add missing <string> and <vector> includes to HostPlatformColor.h fix(macOS): Add missing <string> and <vector> includes to HostPlatformColor.h Apr 7, 2026
Copy link
Copy Markdown
Member

@tido64 tido64 left a comment

Choose a reason for hiding this comment

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

This adds a lot more than just the #includes. Doesn't seem intentional?

@Saadnajmi
Copy link
Copy Markdown
Collaborator Author

This adds a lot more than just the #includes. Doesn't seem intentional?

No, the branch has extra commits. L I'll go fix that

@Saadnajmi Saadnajmi force-pushed the snajmi/fix-missing-string-header branch from 13aa05c to e6d85a9 Compare April 7, 2026 17:07
HostPlatformColor.h uses std::string (in ColorWithSystemEffect and
createSemanticColor) and std::vector but did not include the
corresponding headers, causing build failures when this header is
included before any other header that transitively pulls them in.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@Saadnajmi Saadnajmi force-pushed the snajmi/fix-missing-string-header branch from e6d85a9 to 693103e Compare April 7, 2026 17:08
@Saadnajmi Saadnajmi changed the title fix(macOS): Add missing <string> and <vector> includes to HostPlatformColor.h fix: sdd missing <string> and <vector> includes to HostPlatformColor.h Apr 7, 2026
@Saadnajmi Saadnajmi changed the title fix: sdd missing <string> and <vector> includes to HostPlatformColor.h fix: add missing <string> and <vector> includes to HostPlatformColor.h Apr 7, 2026
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