From d5825bc910b93733006f4ab7001cbd245a5196b1 Mon Sep 17 00:00:00 2001 From: nbelov-magdv Date: Wed, 20 Mar 2024 16:10:26 +0300 Subject: [PATCH] Fix using std::nullptr_t change to nullptr --- push/include/prometheus/gateway.h | 2 +- push/src/detail/curl_wrapper.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/push/include/prometheus/gateway.h b/push/include/prometheus/gateway.h index 25e9f1ea..f5c74708 100644 --- a/push/include/prometheus/gateway.h +++ b/push/include/prometheus/gateway.h @@ -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 presetupCurl = std::nullptr_t); + std::function presetupCurl = nullptr); Gateway(const Gateway&) = delete; Gateway(Gateway&&) = delete; diff --git a/push/src/detail/curl_wrapper.h b/push/src/detail/curl_wrapper.h index 97d582f4..104463cb 100644 --- a/push/src/detail/curl_wrapper.h +++ b/push/src/detail/curl_wrapper.h @@ -13,7 +13,7 @@ class CurlWrapper { public: CurlWrapper(const std::string& username, const std::string& password, - std::function presetupCurl = std::nullptr_t); + std::function presetupCurl = nullptr); CurlWrapper(const CurlWrapper&) = delete; CurlWrapper(CurlWrapper&&) = delete;