Skip to content

Change std::copy to detail::copy in chrono to fix MSVC 19.41.34120 compile errors#4132

Merged
vitaut merged 1 commit intofmtlib:masterfrom
tinfoilboy:fix-copy-in-chrono
Aug 28, 2024
Merged

Change std::copy to detail::copy in chrono to fix MSVC 19.41.34120 compile errors#4132
vitaut merged 1 commit intofmtlib:masterfrom
tinfoilboy:fix-copy-in-chrono

Conversation

@tinfoilboy
Copy link
Copy Markdown
Contributor

Follows the same rationale as commit 6e462b8 to replace std::copy usage with the library detail::copy. Without this, latest MSVC versions will fail to compile when using chrono types.

Compile result before changing to detail::copy:
https://www.godbolt.org/z/G5MGeWva6

Compile result after:
https://www.godbolt.org/z/vYex485oz

@vitaut vitaut merged commit e3676ca into fmtlib:master Aug 28, 2024
@vitaut
Copy link
Copy Markdown
Contributor

vitaut commented Aug 28, 2024

Thank you!

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