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/ExternalSensorMain.cpp b/src/ExternalSensorMain.cpp
index 413a112..e04fc78 100644
--- a/src/ExternalSensorMain.cpp
+++ b/src/ExternalSensorMain.cpp
@@ -2,7 +2,6 @@
#include "Utils.hpp"
#include "VariantVisitors.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>
@@ -281,7 +280,7 @@
{
std::string suffixIt = "/";
suffixIt += *it;
- if (boost::ends_with(suffixIt, suffixName))
+ if (suffixIt.ends_with(suffixName))
{
sensorsChanged->erase(it);
findSensor->second = nullptr;