-
Notifications
You must be signed in to change notification settings - Fork 4
Open
Labels
Description
the ok() and error() methods return an std::optional<std::reference_wrapper<>>. The reference wrapper is basically a pointer that can be used like a reference. This means there is already a way to encode a not valid-state.
This is basically the idea of a packed optional.
We should try this and check if this would really help.