We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 605b3fc commit f6d0065Copy full SHA for f6d0065
2 files changed
core/include/prometheus/detail/future_std.h
@@ -6,14 +6,11 @@
6
namespace prometheus {
7
namespace detail {
8
9
-#if __cplusplus >= 201402L
10
-using std::make_unique;
11
-#else
+// Remove as soon C++14 can be used.
12
template <typename T, typename... Args>
13
std::unique_ptr<T> make_unique(Args&&... args) {
14
return std::unique_ptr<T>(new T(std::forward<Args>(args)...));
15
}
16
-#endif
17
18
} // namespace detail
19
} // namespace prometheus
pull/src/exposer.cc
@@ -16,7 +16,7 @@ Exposer::Exposer(std::shared_ptr<CivetServer> server)
if (!server_) {
throw std::invalid_argument("Invalid CivetServer: cannot be null");
-}
+}
20
21
Exposer::Exposer(const std::string& bind_address, const std::size_t num_threads,
22
const CivetCallbacks* callbacks)
0 commit comments