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

<chrono>: Make tzdb_list's internal ctor harder to unintentionally use #4229

Merged
merged 1 commit into from
Dec 7, 2023

Conversation

StephanTLavavej
Copy link
Member

tzdb_list has "unspecified additional constructors", WG21-N4964 [time.zone.db.list]. #4119 added defenses to time_zone and time_zone_link, so we should update tzdb_list similarly.

This was found by llvm-project/libcxx/test/std/time/time.zone/time.zone.db/time.zone.db.list/types.compile.pass.cpp in the upcoming libcxx update that I'm working on. While this isn't a conformance issue, it's better to strengthen our product than weaken their test here.

…ionally use.

tzdb_list has "unspecified additional constructors". GH 4119 added defenses to time_zone and time_zone_link, so we should update tzdb_list similarly.

This was found by llvm-project/libcxx/test/std/time/time.zone/time.zone.db/time.zone.db.list/types.compile.pass.cpp .
@StephanTLavavej StephanTLavavej added enhancement Something can be improved chrono C++20 chrono labels Dec 2, 2023
@StephanTLavavej StephanTLavavej requested a review from a team as a code owner December 2, 2023 01:10
@CaseyCarter CaseyCarter removed their assignment Dec 6, 2023
@StephanTLavavej StephanTLavavej self-assigned this Dec 7, 2023
@StephanTLavavej
Copy link
Member Author

I'm mirroring this to the MSVC-internal repo - please notify me if any further changes are pushed.

@StephanTLavavej StephanTLavavej merged commit 3ef9108 into microsoft:main Dec 7, 2023
37 checks passed
@StephanTLavavej StephanTLavavej deleted the tzdb-list branch December 7, 2023 16:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
chrono C++20 chrono enhancement Something can be improved
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants