sdbusplus: replace message::variant with std::variant
Signed-off-by: Patrick Williams <patrick@stwcx.xyz>
Change-Id: I7b2bc0a8b34e4d276c0e8ea2243459aab4e1c177
diff --git a/monitor/fan.hpp b/monitor/fan.hpp
index 663e27e..a581b3b 100644
--- a/monitor/fan.hpp
+++ b/monitor/fan.hpp
@@ -55,7 +55,7 @@
class Fan
{
using Property = std::string;
- using Value = sdbusplus::message::variant<bool>;
+ using Value = std::variant<bool>;
using PropertyMap = std::map<Property, Value>;
using Interface = std::string;
diff --git a/monitor/tach_sensor.cpp b/monitor/tach_sensor.cpp
index e366872..2bf7b06 100644
--- a/monitor/tach_sensor.cpp
+++ b/monitor/tach_sensor.cpp
@@ -181,7 +181,7 @@
T& value)
{
std::string sensor;
- std::map<std::string, sdbusplus::message::variant<T>> data;
+ std::map<std::string, std::variant<T>> data;
msg.read(sensor, data);
if (sensor.compare(interface) == 0)
diff --git a/monitor/types.hpp b/monitor/types.hpp
index 1d47e60..6604778 100644
--- a/monitor/types.hpp
+++ b/monitor/types.hpp
@@ -21,9 +21,9 @@
std::string,
std::string>;
-using PropertyValue = sdbusplus::message::variant<bool,
- int64_t,
- std::string>;
+using PropertyValue = std::variant<bool,
+ int64_t,
+ std::string>;
constexpr auto propIdentity = 0;
constexpr auto propValue = 1;
using PropertyState = std::pair<PropertyIdentity,