[libcu++] Implement P3798R1 The unexpected in std::expected#9733
[libcu++] Implement P3798R1 The unexpected in std::expected#9733davebayer wants to merge 1 commit into
std::expected#9733Conversation
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Enterprise Run ID: 📒 Files selected for processing (4)
📝 WalkthroughSummary by CodeRabbit
WalkthroughAdds a Changeshas_error() observer addition
Sequence Diagram(s)Not applicable — changes are simple accessor additions and test files without multi-component interaction flows. Estimated code review effort: Low Suggested labels: libcudacxx, feature, test Suggested reviewers: none identified from provided data important: verify suggestion: consider adding a symmetric noexcept static_assert test for the general 🐰 A hare hopped through expected's den, Comment |
| return this->__has_val_; | ||
| } | ||
|
|
||
| _CCCL_API constexpr bool has_error() const noexcept |
There was a problem hiding this comment.
| _CCCL_API constexpr bool has_error() const noexcept | |
| [[nodiscard]] _CCCL_API constexpr bool has_error() const noexcept |
There was a problem hiding this comment.
I want to make a separate PR adding [[nodiscard]] to expected
| return this->__has_val_; | ||
| } | ||
|
|
||
| _CCCL_API constexpr bool has_error() const noexcept |
There was a problem hiding this comment.
| _CCCL_API constexpr bool has_error() const noexcept | |
| [[nodiscard]] _CCCL_API constexpr bool has_error() const noexcept |
😬 CI Workflow Results🟥 Finished in 4h 27m: Pass: 96%/120 | Total: 5d 02h | Max: 3h 21m | Hits: 66%/562010See results here. |
This PR implements P3798R1 and backports it to C++17.