Commit 61a8ad5c authored by Matthias Vallentin's avatar Matthias Vallentin

Remove maybe<T> vestiges

parent 2d32e8b4
......@@ -64,7 +64,7 @@ public:
(*this)(empty_msg);
}
// unwrap maybes
// unwrap optionals
template <class T>
void operator()(optional<T>& x) {
if (x)
......
......@@ -40,10 +40,10 @@ namespace caf {
/// # Design goals
///
/// The error type in CAF is meant to allow efficient packing of errors
/// in either `maybe` or on the wire. For this purpose, CAF limits the
/// error code to 255 to allow storing the context size along the code
/// in a 32-bit integer (1 bit invaldity flag, 23 bit context size, 8 bit code;
/// if the validity flag is 1, then the error is invalid and has no category).
/// on the wire. For this purpose, CAF limits the error code to 255 to allow
/// storing the context size along the code in a 32-bit integer (1 bit
/// invaldity flag, 23 bit context size, 8 bit code; if the validity flag is 1,
/// then the error is invalid and has no category).
///
/// # Why not `std::error_code` or `std::error_condition`?
///
......
......@@ -27,7 +27,6 @@ namespace caf {
// -- 1 param templates --------------------------------------------------------
template <class> class maybe;
template <class> class optional;
template <class> class intrusive_ptr;
template <class> class weak_intrusive_ptr;
......
This diff is collapsed.
......@@ -26,7 +26,7 @@
namespace caf {
/// Represents "nothing", e.g., for clearing a `maybe` by assigning `none`.
/// Represents "nothing", e.g., for clearing an `optional` by assigning `none`.
struct none_t : detail::comparable<none_t> {
constexpr none_t() {
// nop
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment