diff --git a/result.h b/result.h index 8480860..3422f6d 100644 --- a/result.h +++ b/result.h @@ -746,6 +746,10 @@ struct Result { storage_.destroy(details::err_tag()); } + inline explicit operator bool() const { + return ok_; + } + bool isOk() const { return ok_; }