Skip to content

Add <ratio> header to base_includes.h - #1612

Merged
DefaultRyan merged 1 commit into
microsoft:masterfrom
Penguinwizzard:patch-1
Jul 28, 2026
Merged

Add <ratio> header to base_includes.h#1612
DefaultRyan merged 1 commit into
microsoft:masterfrom
Penguinwizzard:patch-1

Conversation

@Penguinwizzard

@Penguinwizzard Penguinwizzard commented Jul 28, 2026

Copy link
Copy Markdown
Member

base_types.h uses std::ratio_multiply, which is defined in <ratio>. Under strict include-what-you-use rules not referencing this header can lead to weird build breaks.

Fixes: #1611

base_types.h uses std::ratio_multiply, which is defined in <ratio>. Under strict include-what-you-use rules not referencing this header can lead to weird build breaks.
Copilot AI review requested due to automatic review settings July 28, 2026 00:32

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Pull request overview

This PR fixes an include-what-you-use (IWYU) violation by ensuring the header that provides std::ratio_multiply is directly included via the project’s common include aggregator, preventing build failures under strict module/IWYU configurations.

Changes:

  • Add #include <ratio> to strings/base_includes.h so std::ratio_multiply (used in strings/base_types.h) is available without relying on transitive includes.

@DefaultRyan
DefaultRyan merged commit d6cff31 into microsoft:master Jul 28, 2026
88 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.

Bug: Strict include-what-you-use triggers failure to find <ratio>

3 participants