diff options
author | William A. Kennington III <wak@google.com> | 2018-10-18 23:37:19 +0300 |
---|---|---|
committer | William A. Kennington III <wak@google.com> | 2018-10-19 00:41:52 +0300 |
commit | 0a63b1c7e5dafbfae592031c89fcda61c4504a29 (patch) | |
tree | 0bc12f75d7a0788bc55fd8a9a68ab61d76ce8ef4 /include/dbus_monitor.hpp | |
parent | 6228874eaee82201e59d21d2f0b443d4b967c168 (diff) | |
download | bmcweb-0a63b1c7e5dafbfae592031c89fcda61c4504a29.tar.xz |
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>
Diffstat (limited to 'include/dbus_monitor.hpp')
-rw-r--r-- | include/dbus_monitor.hpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/include/dbus_monitor.hpp b/include/dbus_monitor.hpp index 5dcd5ca362..44a7a944b1 100644 --- a/include/dbus_monitor.hpp +++ b/include/dbus_monitor.hpp @@ -6,6 +6,7 @@ #include <boost/container/flat_set.hpp> #include <dbus_singleton.hpp> #include <sdbusplus/bus/match.hpp> +#include <sdbusplus/message/types.hpp> namespace nlohmann { @@ -14,7 +15,7 @@ struct adl_serializer<sdbusplus::message::variant<Args...>> { static void to_json(json& j, const sdbusplus::message::variant<Args...>& v) { - mapbox::util::apply_visitor([&](auto&& val) { j = val; }, v); + sdbusplus::message::variant_ns::visit([&](auto&& val) { j = val; }, v); } }; } // namespace nlohmann |