This repository has been archived by the owner on Apr 6, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 18
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added exceptional class which is implicitly convertible to expected.
The idea is to replace the exceptional_tag and rename it exceptional. Added some overloads to then to unwrap implicitly expected<expected<T>>. Added a get_exceptional function returning exceptionals<E>. Useful when the expected is invalid and the result needs un implicit constructor from the exceptional value. Fixed some issues with comparaision of expected<void>. Added safe_divide example, which could be used as a simple example of the proposal. Added jamfile on test directory.
- Loading branch information
Showing
4 changed files
with
413 additions
and
31 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.