Skip to content

Fix monadic functions for move-only types#174

Merged
Bronek merged 1 commit intomainfrom
bronek/expected_fix_move_only
Feb 15, 2026
Merged

Fix monadic functions for move-only types#174
Bronek merged 1 commit intomainfrom
bronek/expected_fix_move_only

Conversation

@Bronek
Copy link
Member

@Bronek Bronek commented Feb 15, 2026

Monadic functions should support move-only types.

The fix is to add additional requires conditions and remove the uses of value() (which dies static_assert(is_copy_constructible_v<E>) ) from the implementation of or_else and transform_error()

@codecov
Copy link

codecov bot commented Feb 15, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

@Bronek Bronek changed the title Fix monadic support for for move-only types Fix monadic functions for move-only types Feb 15, 2026
@Bronek Bronek merged commit c8eadce into main Feb 15, 2026
54 checks passed
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.

1 participant

Comments