Skip to content

Fix std::chrono by include chrono - #399

Merged
lakulish merged 1 commit into
ValveSoftware:masterfrom
FrankXie05:fix_chrono
Feb 17, 2025
Merged

Fix std::chrono by include chrono#399
lakulish merged 1 commit into
ValveSoftware:masterfrom
FrankXie05:fix_chrono

Conversation

@FrankXie05

Copy link
Copy Markdown
Contributor

Hello, I am the maintainer of vcpkg.

Due to the adjustment of STL methods, after the PR: microsoft/STL#5105 the call to std::chrono needs to explicitly include the header file chrono.

I have submitted a PR in vcpkg to adapt.
microsoft/vcpkg#43670

Error:

D:\b\steam-audio\src\ba4a490a67-27c1a63d4c.clean\core\src\core\profiler.h(40): error C2039: 'high_resolution_clock': is not a member of 'std::chrono'
C:\Program Files\Microsoft Visual Studio\2022\Enterprise\VC\Tools\MSVC\14.42.34433\include\__msvc_chrono.hpp(286): note: see declaration of 'std::chrono'
D:\b\steam-audio\src\ba4a490a67-27c1a63d4c.clean\core\src\core\profiler.h(40): error C2065: 'high_resolution_clock': undeclared identifier
D:\b\steam-audio\src\ba4a490a67-27c1a63d4c.clean\core\src\core\profiler.h(40): error C2923: 'std::chrono::time_point': 'high_resolution_clock' is not a valid template type argument for parameter '_Clock'
D:\b\steam-audio\src\ba4a490a67-27c1a63d4c.clean\core\src\core\profiler.h(40): note: see declaration of 'high_resolution_clock'
D:\b\steam-audio\src\ba4a490a67-27c1a63d4c.clean\core\src\core\profiler.h(40): error C2976: 'std::chrono::time_point': too few template arguments

@lakulish
lakulish merged commit 75ad6ec into ValveSoftware:master Feb 17, 2025
@FrankXie05

Copy link
Copy Markdown
Contributor Author

Thanks.

@FrankXie05
FrankXie05 deleted the fix_chrono branch February 18, 2025 06:56
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