From 649b1d2172d5e91eb0d070e8831c0ad4f63cdc1d Mon Sep 17 00:00:00 2001 From: R Edgar Date: Sun, 9 Aug 2020 16:45:53 -0400 Subject: [PATCH] Fix nullptr_t issue (#605) Clang complains that `nullptr_t` should be `std::nullptr_t --- httplib.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/httplib.h b/httplib.h index aefde7a..e820ceb 100644 --- a/httplib.h +++ b/httplib.h @@ -693,8 +693,8 @@ class Result { public: Result(std::shared_ptr 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(); }