This commit is contained in:
yhirose 2020-10-27 20:32:19 -04:00
parent 953600c177
commit 8b1b31ac20

View file

@ -745,8 +745,11 @@ public:
bool operator==(std::nullptr_t) const { return res_ == nullptr; }
bool operator!=(std::nullptr_t) const { return res_ != nullptr; }
const Response &value() const { return *res_; }
Response &value() { return *res_; }
const Response &operator*() const { return *res_; }
Response &operator*() { return *res_; }
const Response *operator->() const { return res_.get(); }
Response *operator->() { return res_.get(); }
Error error() const { return err_; }
private: