result17
result17 copied to clipboard
A rust like Result type for modern C++
the `ok()` and `error()` methods return an `std::optional`. The reference wrapper is basically a pointer that can be used like a reference. This means there is already a way to...
The `std::reference_wrapper` has no operator overloads for our use case. This reduces the value of our `Result` API a lot. We should use a specialized ReferenceWrapper that has overloads for...
The `std::variant` is prone to generate very bad code. Every interaction with the value can throw an exception if the variant is in an invalid state. This exception path basically...