boostorg / boostorg/system

`result` value replacement operator

Open
#144 2 comments 0 reactions 0 assignees View on GitHub
Dominant language
C++
Stars
45
Forks
96
PR merge metrics
No merged PRs in 30d

Description

E.g. `r1 & r2`. The result

* contains `r1.error()` if `r1.has_error()`, or
* contains `r2.error()` if `r2.has_error()`, or
* contains `r2.value()` otherwise.

As you mentioned on Slack, maybe this should only be allowed when `r1` is `result`, although I personally don't see a problem with it.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.