Fix nullptr_t issue (#605)

Clang complains that `nullptr_t` should be `std::nullptr_t
This commit is contained in:
R Edgar 2020-08-09 16:45:53 -04:00 committed by GitHub
parent dc5f9ba164
commit 649b1d2172
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -693,8 +693,8 @@ class Result {
public:
Result(std::shared_ptr<Response> res, Error err) : res_(res), err_(err) {}
operator bool() { return res_ != nullptr; }
bool operator==(nullptr_t) const { return res_ == nullptr; }
bool operator!=(nullptr_t) const { return res_ != nullptr; }
bool operator==(std::nullptr_t) const { return res_ == nullptr; }
bool operator!=(std::nullptr_t) const { return res_ != nullptr; }
const Response &value() { return *res_; }
const Response &operator*() { return *res_; }
const Response *operator->() { return res_.get(); }