-
Notifications
You must be signed in to change notification settings - Fork 1.8k
Include <chrono> for chrono_literals. #37058
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Include <chrono> for chrono_literals. #37058
Conversation
|
EWS run on previous version of this PR (hash 0ec6b02) Details |
|
Hi! Can you follow to the instructions in https://webkit.org/contributing-code/ ? WebKit requires specific format in commit message. |
|
EWS run on current version of this PR (hash fbef012) Details |
|
I've amended my commit message to try to follow the conventions. |
Reviewed by Fujii Hironori. The C++ Standard requires the <chrono> header to be included before using the user-defined literals in the chrono_literals namespace. WorkQueue.cpp was incorrectly assuming that including <thread> would drag in these chrono UDLs, but this assumption will be broken by an upcoming update of Microsoft Visual C++ (expected to ship in VS 2022 17.13). Including <chrono> is portable and backwards-compatible. No tests added - this is purely a compile-time fix, and if the code builds, it's good. * WebKit/Tools/TestWebKitAPI/Tests/WTF/WorkQueue.cpp: Include <chrono>. Canonical link: https://commits.webkit.org/287203@main
<chrono> for chrono_literals|
Committed 287203@main (cf74749): https://commits.webkit.org/287203@main Reviewed commits have been landed. Closing PR #37058 and removing active labels. |
cf74749
fbef012