sdbusplus: replace message::variant with std::variant
Signed-off-by: Patrick Williams <patrick@stwcx.xyz>
Change-Id: Ifeb64ec42f9210b5640754e8a065d954f617ca44
diff --git a/manager.cpp b/manager.cpp
index fea526b..51bd5bf 100644
--- a/manager.cpp
+++ b/manager.cpp
@@ -127,7 +127,7 @@
using Interface = std::string;
using Property = std::string;
using Value = std::string;
- using Properties = std::map<Property, sdbusplus::message::variant<Value>>;
+ using Properties = std::map<Property, std::variant<Value>>;
Interface interface;
Properties properties;
@@ -201,7 +201,7 @@
using Interface = std::string;
using Property = std::string;
using Value = std::string;
- using Properties = std::map<Property, sdbusplus::message::variant<Value>>;
+ using Properties = std::map<Property, std::variant<Value>>;
using Host = sdbusplus::xyz::openbmc_project::State::server::Host;
Interface interface;
diff --git a/utils.hpp b/utils.hpp
index be78f9e..0e30fa2 100644
--- a/utils.hpp
+++ b/utils.hpp
@@ -67,7 +67,7 @@
method.append(interface, propertyName);
try
{
- sdbusplus::message::variant<T> value{};
+ std::variant<T> value{};
auto reply = bus.call(method);
reply.read(value);
return std::get<T>(value);