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/include/Utils.hpp b/include/Utils.hpp
index fb543f4..2d6bac3 100644
--- a/include/Utils.hpp
+++ b/include/Utils.hpp
@@ -1,6 +1,5 @@
#pragma once
#include <VariantVisitors.hpp>
-#include <boost/algorithm/string/predicate.hpp>
#include <boost/algorithm/string/replace.hpp>
#include <boost/asio/steady_timer.hpp>
#include <boost/container/flat_map.hpp>
@@ -307,7 +306,7 @@
// is good
if (std::find_if(interfaces.begin(), interfaces.end(),
[interface](const std::string& possible) {
- return boost::starts_with(interface, possible);
+ return interface.starts_with(possible);
}) == interfaces.end())
{
continue;