You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
The text was updated successfully, but these errors were encountered:
the
ok()
anderror()
methods return anstd::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 anot valid
-state.This is basically the idea of a packed optional.
We should try this and check if this would really help.
The text was updated successfully, but these errors were encountered: