aboutsummaryrefslogtreecommitdiff
path: root/lib/expected.h
AgeCommit message (Collapse)Author
2022-05-16expected.h: add a copyright noticeAlexey Rusakov
[skip ci]
2022-05-16Expected<>Alexey Rusakov
This is a minimal implementation along the lines of `std::expected<>` introduced in C++23; once compilers catch up with C++23 support, it may become simply a typedef of std::expected. There are no tests as yet; but the following commits will introduce QOlmExpected that would replace the current `std::variant<T, QOlmError>` pattern used throughout `QOlm*` classes, automatically pulling Expected under the coverage of `QOlm*` unit tests.