Skip to content

[k2] fix tl::Either variant access and modernize#1535

Merged
apolyakov merged 1 commit intomasterfrom
apolyakov/k2-fix-tl-either-store
Feb 25, 2026
Merged

[k2] fix tl::Either variant access and modernize#1535
apolyakov merged 1 commit intomasterfrom
apolyakov/k2-fix-tl-either-store

Conversation

@apolyakov
Copy link
Contributor

No description provided.

@apolyakov apolyakov added this to the next milestone Feb 24, 2026
@apolyakov apolyakov self-assigned this Feb 24, 2026
@apolyakov apolyakov added bug Something isn't working k2 k2 related labels Feb 24, 2026
@apolyakov apolyakov force-pushed the apolyakov/k2-fix-tl-either-store branch from 97e5d77 to 0482f07 Compare February 25, 2026 08:35
@apolyakov apolyakov requested a review from Shamzik February 25, 2026 08:36
PetrShumilov
PetrShumilov previously approved these changes Feb 25, 2026
Copy link
Contributor

@PetrShumilov PetrShumilov left a comment

Choose a reason for hiding this comment

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

OK

Shamzik
Shamzik previously approved these changes Feb 25, 2026
KPHP-CI
KPHP-CI previously approved these changes Feb 25, 2026
Copy link

@KPHP-CI KPHP-CI left a comment

Choose a reason for hiding this comment

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

Excellent work!

…traint

* use std::get instead of static_cast for variant access
* require std::default_initializable<T, U> for the class
* modernize with if-with-initializer
@apolyakov apolyakov dismissed stale reviews from KPHP-CI, Shamzik, and PetrShumilov via 700b7e2 February 25, 2026 14:31
@apolyakov apolyakov force-pushed the apolyakov/k2-fix-tl-either-store branch from 0482f07 to 700b7e2 Compare February 25, 2026 14:31
@apolyakov apolyakov merged commit 140e586 into master Feb 25, 2026
7 checks passed
@apolyakov apolyakov deleted the apolyakov/k2-fix-tl-either-store branch February 25, 2026 20:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working k2 k2 related

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants