Skip to content

Revise unwrap_recursive family#18

Merged
saki7 merged 1 commit intomainfrom
revise-unwrap-recursive
Feb 7, 2026
Merged

Revise unwrap_recursive family#18
saki7 merged 1 commit intomainfrom
revise-unwrap-recursive

Conversation

@saki7
Copy link
Member

@saki7 saki7 commented Feb 7, 2026

During the adaptation of rvariant in X4 (iris-cpp/x4#9), it turned out that UNWRAP_RECURSIVE is actually needed on a user-facing interface.

In-depth rationale: https://github.com/iris-cpp/x4/blob/6e4a46f258c685883aa3b5a4bdbc0886a6e459de/include/iris/x4/traits/variant_traits.hpp#L52-L65

This PR is the requirement for adding such optimization to X4.

Changes

  • struct unwrap_recursive
    • Removed as being very niche use case
  • using unwrap_recursive_t = ...
    • Renamed to unwrap_recursive_type
  • UNWRAP_RECURSIVE
    • Previously exposition-only, now public API
    • Revised into iris::unwrap_recursive

@saki7 saki7 self-assigned this Feb 7, 2026
@saki7 saki7 added documentation Improvements or additions to documentation enhancement New feature or request labels Feb 7, 2026
@saki7 saki7 merged commit 6024968 into main Feb 7, 2026
13 checks passed
@saki7 saki7 deleted the revise-unwrap-recursive branch February 7, 2026 13:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation Improvements or additions to documentation enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant