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/IntelCPUSensorMain.cpp b/src/IntelCPUSensorMain.cpp
index b2238a6..2780c1f 100644
--- a/src/IntelCPUSensorMain.cpp
+++ b/src/IntelCPUSensorMain.cpp
@@ -19,7 +19,6 @@
#include <IntelCPUSensor.hpp>
#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>
@@ -424,8 +423,8 @@
}
const std::string& directoryName = path.path().filename();
- if (boost::starts_with(directoryName, busStr) &&
- boost::ends_with(directoryName, addrHexStr))
+ if (directoryName.starts_with(busStr) &&
+ directoryName.ends_with(addrHexStr))
{
if (debug)
{