bmcweb: Move boost::optional to std::optional
This change is largely a sed replace, and gets us closer to standards
compliance.
Change-Id: Ie60437eff43de830ef19389344a55430dabd9d16
Signed-off-by: Ed Tanous <ed.tanous@intel.com>
diff --git a/redfish-core/lib/account_service.hpp b/redfish-core/lib/account_service.hpp
index 97e5f64..475e09c 100644
--- a/redfish-core/lib/account_service.hpp
+++ b/redfish-core/lib/account_service.hpp
@@ -181,8 +181,8 @@
std::string username;
std::string password;
- boost::optional<std::string> roleId("User");
- boost::optional<bool> enabled = true;
+ std::optional<std::string> roleId("User");
+ std::optional<bool> enabled = true;
if (!json_util::readJson(req, res, "UserName", username, "Password",
password, "RoleId", roleId, "Enabled",
enabled))
@@ -412,10 +412,10 @@
return;
}
- boost::optional<std::string> newUserName;
- boost::optional<std::string> password;
- boost::optional<bool> enabled;
- boost::optional<std::string> roleId;
+ std::optional<std::string> newUserName;
+ std::optional<std::string> password;
+ std::optional<bool> enabled;
+ std::optional<std::string> roleId;
if (!json_util::readJson(req, res, "UserName", newUserName, "Password",
password, "RoleId", roleId, "Enabled",
enabled))
@@ -460,9 +460,9 @@
void updateUserProperties(std::shared_ptr<AsyncResp> asyncResp,
const std::string& username,
- boost::optional<std::string> password,
- boost::optional<bool> enabled,
- boost::optional<std::string> roleId)
+ std::optional<std::string> password,
+ std::optional<bool> enabled,
+ std::optional<std::string> roleId)
{
if (password)
{