summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorWilliam A. Kennington III <wak@google.com>2018-11-06 15:57:00 -0800
committerWilliam A. Kennington III <wak@google.com>2018-11-06 15:57:06 -0800
commit555a279efd237fb9d381d7f7aae25c9daae85555 (patch)
tree184065b9d1b35781e6dc5cbddbfeb4d9b2a463e2
parent91ac8d3aade91fb99f496c05114291fcb6bf1856 (diff)
downloadphosphor-led-manager-555a279efd237fb9d381d7f7aae25c9daae85555.zip
phosphor-led-manager-555a279efd237fb9d381d7f7aae25c9daae85555.tar.gz
Fix std::variant usage
We need to conform to the std::variant interface for sdbusplus to eventually switch away from mapbox. The .get() interface is only provided by mapbox and needs to be converted. Change-Id: Ia41808d6bab73b097fc631fd9eff549be9a22415 Signed-off-by: William A. Kennington III <wak@google.com>
-rw-r--r--fault-monitor/fru-fault-monitor.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/fault-monitor/fru-fault-monitor.cpp b/fault-monitor/fru-fault-monitor.cpp
index a7ed952..ca31702 100644
--- a/fault-monitor/fru-fault-monitor.cpp
+++ b/fault-monitor/fru-fault-monitor.cpp
@@ -282,7 +282,8 @@ void Add::processExistingCallouts(sdbusplus::bus::bus& bus)
entry("REPLY_SIG=%s", reply.get_signature()));
continue;
}
- auto& assocs = assoc.get<AssociationList>();
+ auto& assocs =
+ sdbusplus::message::variant_ns::get<AssociationList>(assoc);
if (assocs.empty())
{
// no associations, skip
OpenPOWER on IntegriCloud