Fix tidy misc-include issue
Fix minor #include regression caused by
ee993dc84b1e9917b545fdd7367f1127a358084a
Change-Id: Ieda0205a4a4faf877a4f2298e6935bc3aa506fde
Signed-off-by: Ed Tanous <etanous@nvidia.com>
diff --git a/http/logging.hpp b/http/logging.hpp
index 0671577..d0a241c 100644
--- a/http/logging.hpp
+++ b/http/logging.hpp
@@ -14,6 +14,7 @@
#include <string>
#include <string_view>
#include <type_traits>
+#include <utility>
// NOLINTBEGIN(readability-convert-member-functions-to-static, cert-dcl58-cpp)
template <>
@@ -46,7 +47,7 @@
constexpr int toSystemdLevel(LogLevel level)
{
- std::array<std::pair<LogLevel, int>, 5> mapping{
+ constexpr std::array<std::pair<LogLevel, int>, 5> mapping{
{// EMERGENCY 0
// ALERT 1
{LogLevel::Critical, 2},
@@ -56,7 +57,7 @@
{LogLevel::Info, 6},
{LogLevel::Debug, 7}}};
- auto* it = std::ranges::find_if(
+ const auto* it = std::ranges::find_if(
mapping, [level](const std::pair<LogLevel, int>& elem) {
return elem.first == level;
});