mirror of
https://github.com/yhirose/cpp-httplib
synced 2024-11-21 06:26:02 -07:00
Fix nullptr_t issue (#605)
Clang complains that `nullptr_t` should be `std::nullptr_t
This commit is contained in:
parent
dc5f9ba164
commit
649b1d2172
1 changed files with 2 additions and 2 deletions
|
@ -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(); }
|
||||
|
|
Loading…
Reference in a new issue