Skip to content

Commit

Permalink
Update Readme for unexpected_type::error() and deprecated unexpected_…
Browse files Browse the repository at this point in the history
…type::value() (#66)
  • Loading branch information
martinmoene committed Jun 4, 2024
1 parent 5fd5b70 commit 8fd610a
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -254,8 +254,10 @@ You can use the R3 revision of P2505, which lacks `error_or`, and uses `remove_c
| Construction | **unexpected_type**() = delete; | no default construction |
|   | constexpr explicit **unexpected_type**( E const & error ) | copy-constructed from an E |
|   | constexpr explicit **unexpected_type**( E && error ) | move-constructed from an E |
| Observers | constexpr error_type const & **value**() const | can observe contained error |
|   | error_type & **value**() | can modify contained error |
| Observers | constexpr error_type const & **error**() const | can observe contained error |
|   | error_type & **error**() | can modify contained error |
| deprecated | constexpr error_type const & **value**() const | can observe contained error |
| deprecated | error_type & **value**() | can modify contained error |
### Algorithms for unexpected_type
Expand Down

0 comments on commit 8fd610a

Please sign in to comment.