Replace boost string predicate functions with stdlib ones
Now that we're on C++20 we no longer need boost for starts_with() and
ends_with() tests.
Also remove the predicate.hpp #include from files that weren't actually
using anything from it.
Signed-off-by: Zev Weiss <zev@bewilderbeest.net>
Change-Id: Id68a019d5108a4646eb9b5fd18af33d60617e048
diff --git a/src/HwmonTempMain.cpp b/src/HwmonTempMain.cpp
index 47f2f07..1431508 100644
--- a/src/HwmonTempMain.cpp
+++ b/src/HwmonTempMain.cpp
@@ -16,7 +16,6 @@
#include <HwmonTempSensor.hpp>
#include <Utils.hpp>
-#include <boost/algorithm/string/predicate.hpp>
#include <boost/algorithm/string/replace.hpp>
#include <boost/container/flat_map.hpp>
#include <boost/container/flat_set.hpp>
@@ -359,7 +358,7 @@
auto it = sensorsChanged->begin();
while (it != sensorsChanged->end())
{
- if (boost::ends_with(*it, findSensor->second->name))
+ if (it->ends_with(findSensor->second->name))
{
it = sensorsChanged->erase(it);
findSensor->second = nullptr;