Fixup mapbox variant references
This removes all dependencies on the mapbox specific variant api. The
code is now compatible with the drop in std::variant api.
Change-Id: Ie64be86ecae341def54f564eb282fb3b5356cc18
Signed-off-by: William A. Kennington III <wak@google.com>
diff --git a/include/openbmc_dbus_rest.hpp b/include/openbmc_dbus_rest.hpp
index aa6c95f..1fefa40 100644
--- a/include/openbmc_dbus_rest.hpp
+++ b/include/openbmc_dbus_rest.hpp
@@ -23,6 +23,7 @@
#include <dbus_utility.hpp>
#include <experimental/filesystem>
#include <fstream>
+#include <sdbusplus/message/types.hpp>
namespace crow
{
@@ -126,7 +127,7 @@
{
nlohmann::json &propertyJson =
objectJson[property.first];
- mapbox::util::apply_visitor(
+ sdbusplus::message::variant_ns::visit(
[&propertyJson](auto &&val) {
propertyJson = val;
},
@@ -860,7 +861,7 @@
if (propertyName->empty())
{
- mapbox::util::apply_visitor(
+ sdbusplus::message::variant_ns::visit(
[&response, &property](auto &&val) {
(*response)[property.first] =
val;
@@ -869,7 +870,7 @@
}
else if (property.first == *propertyName)
{
- mapbox::util::apply_visitor(
+ sdbusplus::message::variant_ns::visit(
[&response](auto &&val) {
(*response) = val;
},