Skip to content

msvetkin/refactor/pipe and closures#47

Merged
msvetkin merged 2 commits intomainfrom
msvetkin/refactor/pipe-and-closures
May 2, 2026
Merged

msvetkin/refactor/pipe and closures#47
msvetkin merged 2 commits intomainfrom
msvetkin/refactor/pipe-and-closures

Conversation

@msvetkin
Copy link
Copy Markdown
Collaborator

@msvetkin msvetkin commented May 2, 2026

No description provided.

msvetkin added 2 commits May 2, 2026 19:22
Each operation class is now its own closure: and_then_t<Fn>, or_else_t<Fn>,
transform_t<Fn>, and transform_error_t<Fn> store the callable privately and
expose operator| as a hidden friend. Both Box and Fn are simultaneously in
scope on operator|, so constraints and on_error diagnostics work without
indirection.

callable_adaptor<T> replaces pipe_adaptor<T> as the factory — it constructs
T<decay_t<Fn>> from a user-provided callable and serves as an extension point
for future calling conventions.

Removes access_key.hpp and pipe_adaptor.hpp entirely.
@coveralls
Copy link
Copy Markdown

Coverage Status

coverage: 100.0%. remained the same — msvetkin/refactor/pipe-and-closures into main

@msvetkin msvetkin merged commit 2da7417 into main May 2, 2026
91 checks passed
@msvetkin msvetkin deleted the msvetkin/refactor/pipe-and-closures branch May 2, 2026 17:45
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