Skip to content

Commit f6d0065

Browse files
committed
chore: small adjustments
1 parent 605b3fc commit f6d0065

2 files changed

Lines changed: 2 additions & 5 deletions

File tree

core/include/prometheus/detail/future_std.h

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,14 +6,11 @@
66
namespace prometheus {
77
namespace detail {
88

9-
#if __cplusplus >= 201402L
10-
using std::make_unique;
11-
#else
9+
// Remove as soon C++14 can be used.
1210
template <typename T, typename... Args>
1311
std::unique_ptr<T> make_unique(Args&&... args) {
1412
return std::unique_ptr<T>(new T(std::forward<Args>(args)...));
1513
}
16-
#endif
1714

1815
} // namespace detail
1916
} // namespace prometheus

pull/src/exposer.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ Exposer::Exposer(std::shared_ptr<CivetServer> server)
1616
if (!server_) {
1717
throw std::invalid_argument("Invalid CivetServer: cannot be null");
1818
}
19-
}
19+
}
2020

2121
Exposer::Exposer(const std::string& bind_address, const std::size_t num_threads,
2222
const CivetCallbacks* callbacks)

0 commit comments

Comments
 (0)