Take out array size for constexpr std::array
C++20 supports initializing array without size using std::to_array
Signed-off-by: Brandon Kim <brandonkim@google.com>
Change-Id: I7f955ddaf7c4368f364eae6ff401b0916f5cbe6f
diff --git a/src/ADCSensorMain.cpp b/src/ADCSensorMain.cpp
index eea2766..1fac7dd 100644
--- a/src/ADCSensorMain.cpp
+++ b/src/ADCSensorMain.cpp
@@ -40,8 +40,8 @@
namespace fs = std::filesystem;
-static constexpr std::array<const char*, 1> sensorTypes = {
- "xyz.openbmc_project.Configuration.ADC"};
+static constexpr auto sensorTypes{
+ std::to_array<const char*>({"xyz.openbmc_project.Configuration.ADC"})};
static std::regex inputRegex(R"(in(\d+)_input)");
static boost::container::flat_map<size_t, bool> cpuPresence;