summaryrefslogtreecommitdiff
path: root/include/ibm
diff options
context:
space:
mode:
authorEd Tanous <edtanous@google.com>2022-07-11 19:50:41 +0300
committerEd Tanous <ed@tanous.net>2022-07-16 05:03:56 +0300
commit11ba39793c016e8476e44be880fb267e059dd4eb (patch)
tree863b07c67ed699cf051ed792b01f68c82027c94c /include/ibm
parent433b68b477a82a31de4104a83404021de1f30214 (diff)
downloadbmcweb-11ba39793c016e8476e44be880fb267e059dd4eb.tar.xz
Remove usages of boost::starts/ends_with
Per the coding standard, now that C++ supports std::string::starts_with and std::string::ends_with, we should be using them over the boost alternatives. This commit goes through and updates all usages. Arguably some of these are incorrect, and instances of common error 13, but because this is mostly a mechanical it intentionally doesn't try to handle it. Tested: Unit tests pass. Signed-off-by: Ed Tanous <edtanous@google.com> Change-Id: Ic4c6e5d0da90f7442693199dc691a47d2240fa4f
Diffstat (limited to 'include/ibm')
-rw-r--r--include/ibm/locks.hpp3
-rw-r--r--include/ibm/management_console_rest.hpp2
2 files changed, 3 insertions, 2 deletions
diff --git a/include/ibm/locks.hpp b/include/ibm/locks.hpp
index 2c6668c9a6..5df3daa975 100644
--- a/include/ibm/locks.hpp
+++ b/include/ibm/locks.hpp
@@ -1,6 +1,6 @@
#pragma once
-#include <boost/algorithm/string.hpp>
+#include <boost/algorithm/string/predicate.hpp>
#include <boost/container/flat_map.hpp>
#include <boost/endian/conversion.hpp>
#include <include/ibm/utils.hpp>
@@ -9,6 +9,7 @@
#include <filesystem>
#include <fstream>
+#include <variant>
namespace crow
{
diff --git a/include/ibm/management_console_rest.hpp b/include/ibm/management_console_rest.hpp
index 8d50c9f147..0d8e287802 100644
--- a/include/ibm/management_console_rest.hpp
+++ b/include/ibm/management_console_rest.hpp
@@ -2,7 +2,7 @@
#include <app.hpp>
#include <async_resp.hpp>
-#include <boost/algorithm/string.hpp>
+#include <boost/algorithm/string/predicate.hpp>
#include <boost/container/flat_set.hpp>
#include <error_messages.hpp>
#include <event_service_manager.hpp>