From efcd653d7419d6f14274f707f47fc6f9120202fe Mon Sep 17 00:00:00 2001 From: "William A. Kennington III" Date: Mon, 12 Nov 2018 15:54:32 -0800 Subject: std::variant: Fixup .get() usage This is just a refactor from the mapbox specific .get() interface to the common std::variant ::get<>() interface. Tested: Built and run through unit tests. Change-Id: Ic0737f632e80c9dd5b73717ec33d31f245f107db Signed-off-by: William A. Kennington III --- mslverify/util.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'mslverify/util.hpp') diff --git a/mslverify/util.hpp b/mslverify/util.hpp index e0d07ca..eefc1cd 100644 --- a/mslverify/util.hpp +++ b/mslverify/util.hpp @@ -125,7 +125,7 @@ static auto getProperty(::sdbusplus::bus::bus& bus, const std::string& busName, "Get"s, interface, property); ::sdbusplus::message::variant value; msg.read(value); - return value.template get(); + return ::sdbusplus::message::variant_ns::get(value); } /** @brief Get a property without mapper lookup. */ -- cgit v1.2.1