Fix std::variant usage
We need to conform to the std::variant interface instead of the mapbox
specific one.
Change-Id: I3edbcb2682ddfebfcbca6e75284b11f2e18cfd11
Signed-off-by: William A. Kennington III <wak@google.com>
diff --git a/manager.cpp b/manager.cpp
index 6d6c659..f9de91d 100644
--- a/manager.cpp
+++ b/manager.cpp
@@ -136,7 +136,9 @@
for (const auto& p : properties)
{
- onPropertyChanged(p.first, p.second.get<std::string>());
+ onPropertyChanged(
+ p.first,
+ sdbusplus::message::variant_ns::get<std::string>(p.second));
}
return 0;
@@ -213,8 +215,8 @@
{
if (p.first == HOST_CURRENT_STATE)
{
- auto state =
- Host::convertHostStateFromString(p.second.get<std::string>());
+ auto state = Host::convertHostStateFromString(
+ sdbusplus::message::variant_ns::get<std::string>(p.second));
onHostState(state == Host::HostState::Running);
break;
}