meson: remove boost
boost is not necessary here and has little use in the project.
Change-Id: Ia7ce9664335dce50652d0baa4a2132fde28a6269
Signed-off-by: Alexander Hansen <alexander.hansen@9elements.com>
diff --git a/interfaces/internal_interface.cpp b/interfaces/internal_interface.cpp
index c990632..f178489 100644
--- a/interfaces/internal_interface.cpp
+++ b/interfaces/internal_interface.cpp
@@ -19,6 +19,8 @@
#include <sdbusplus/message.hpp>
#include <algorithm>
+#include <iterator>
+#include <numeric>
namespace phosphor
{
@@ -50,7 +52,11 @@
words.emplace_back(ledDescr.color.value());
}
- std::string s = boost::join(words, "_");
+ std::string s = std::accumulate(std::next(words.begin()), words.end(),
+ words[0],
+ [](std::string a, const std::string& b) {
+ return std::move(a) + "_" + b;
+ });
// we assume the string to be a correct dbus name besides
// this detail