Skip to content

Commit

Permalink
Fix using std::nullptr_t
Browse files Browse the repository at this point in the history
change to nullptr
  • Loading branch information
nbelov-magdv committed Mar 20, 2024
1 parent c3802c4 commit d5825bc
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion push/include/prometheus/gateway.h
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ class PROMETHEUS_CPP_PUSH_EXPORT Gateway {
const std::string& jobname, const Labels& labels = {},
const std::string& username = {}, const std::string& password = {},
std::chrono::seconds timeout = {},
std::function<void(CURL*)> presetupCurl = std::nullptr_t);
std::function<void(CURL*)> presetupCurl = nullptr);

Gateway(const Gateway&) = delete;
Gateway(Gateway&&) = delete;
Expand Down
2 changes: 1 addition & 1 deletion push/src/detail/curl_wrapper.h
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ class CurlWrapper {
public:
CurlWrapper(const std::string& username,
const std::string& password,
std::function<void(CURL*)> presetupCurl = std::nullptr_t);
std::function<void(CURL*)> presetupCurl = nullptr);

CurlWrapper(const CurlWrapper&) = delete;
CurlWrapper(CurlWrapper&&) = delete;
Expand Down

0 comments on commit d5825bc

Please sign in to comment.