treewide: prefer std::starts_with to boost
Replace boost versions of starts_with and ends_with with the std
versions provided with c++20.
Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com>
Change-Id: I97218c607ff04aedad490b3af428071b0fa75615
diff --git a/src/associations.cpp b/src/associations.cpp
index 79672af..6dbc710 100644
--- a/src/associations.cpp
+++ b/src/associations.cpp
@@ -1,9 +1,9 @@
#include "associations.hpp"
-#include <boost/algorithm/string/predicate.hpp>
#include <sdbusplus/exception.hpp>
#include <iostream>
+#include <string>
void removeAssociation(const std::string& sourcePath, const std::string& owner,
sdbusplus::asio::object_server& server,
@@ -462,8 +462,7 @@
endpoints.begin(), endpoints.end(), otherPath);
if (endpoint != endpoints.end())
{
- return boost::starts_with(ap.first,
- endpointPath + '/');
+ return ap.first.starts_with(endpointPath + '/');
}
return false;
});