From 555a279efd237fb9d381d7f7aae25c9daae85555 Mon Sep 17 00:00:00 2001 From: "William A. Kennington III" Date: Tue, 6 Nov 2018 15:57:00 -0800 Subject: 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 --- fault-monitor/fru-fault-monitor.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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(); + auto& assocs = + sdbusplus::message::variant_ns::get(assoc); if (assocs.empty()) { // no associations, skip -- cgit v1.2.1