Skip to content
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

P1614R2 Spaceship: Clause 27: Time (partial, pre-C++20 types) #1602

Merged
merged 4 commits into from
Feb 19, 2021

Conversation

statementreply
Copy link
Contributor

@statementreply statementreply commented Jan 30, 2021

This PR patches pre-C++20 <chrono> types.

#323 has already implemented WG21-P1614 for the new calendar types.

@statementreply statementreply requested a review from a team as a code owner January 30, 2021 16:59
@statementreply statementreply marked this pull request as draft January 30, 2021 17:02
@statementreply statementreply marked this pull request as ready for review January 30, 2021 17:32
@StephanTLavavej StephanTLavavej added cxx20 C++20 feature spaceship C++20 operator <=> labels Jan 31, 2021
@MattStephanson
Copy link
Contributor

I had implemented these for utc_clock et al. I don't mind waiting, just FYI that this is blocking other work.

@statementreply
Copy link
Contributor Author

I had implemented these for utc_clock et al. I don't mind waiting, just FYI that this is blocking other work.

Would it be better if I retarget this PR to main branch to unblock <chrono> work?

@MattStephanson
Copy link
Contributor

MattStephanson commented Feb 2, 2021

Oh, I forgot there's a feature branch for these. I'm using operator<=>(leap_second,sys_time) (thus, operator<=>(time_point,time_point)) for std::get_leap_second_info, so it would be useful for me to have it. But I could also rewrite it and move the leap-related <=> to feature/spaceship as well.

@StephanTLavavej StephanTLavavej self-assigned this Feb 3, 2021
@statementreply statementreply changed the base branch from feature/spaceship to main February 4, 2021 13:50
@statementreply
Copy link
Contributor Author

Force-pushed, retarget to main.

Copy link
Member

@StephanTLavavej StephanTLavavej left a comment

Choose a reason for hiding this comment

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

Looks great! I'll push a test.lst update.

tests/std/tests/P1614R2_spaceship/env.lst Show resolved Hide resolved
@StephanTLavavej StephanTLavavej removed their assignment Feb 18, 2021
@StephanTLavavej
Copy link
Member

I've mirrored this to internal MSVC-PR-305171.

Please note: Further changes are still possible (e.g. if you notice something, or if final review leads to more feedback that should be addressed before merging), but they must be replicated to the mirror PR in order to avoid codebase divergence.

@StephanTLavavej StephanTLavavej changed the title feature/spaceship: Clause 27: Time (partial, pre-C++20 types) P1614R2 Spaceship: Clause 27: Time (partial, pre-C++20 types) Feb 19, 2021
@StephanTLavavej StephanTLavavej merged commit 1043b11 into microsoft:main Feb 19, 2021
@StephanTLavavej
Copy link
Member

Thanks for implementing these timeships and unblocking further work on C++20 timezones! ⏲️ 🛸 😺

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cxx20 C++20 feature spaceship C++20 operator <=>
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants