diff options
author | William A. Kennington III <wak@google.com> | 2018-11-12 15:54:32 -0800 |
---|---|---|
committer | William A. Kennington III <wak@google.com> | 2018-11-12 16:51:49 -0800 |
commit | efcd653d7419d6f14274f707f47fc6f9120202fe (patch) | |
tree | 8555c654745c83eb33e736485ec2485a46236118 /mslverify | |
parent | 0b45a3ce6d21e70453ed3d4a7dfcc2bef0865e7f (diff) | |
download | phosphor-dbus-monitor-efcd653d7419d6f14274f707f47fc6f9120202fe.tar.gz phosphor-dbus-monitor-efcd653d7419d6f14274f707f47fc6f9120202fe.zip |
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 <wak@google.com>
Diffstat (limited to 'mslverify')
-rw-r--r-- | mslverify/util.hpp | 2 |
1 files changed, 1 insertions, 1 deletions
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<Property> value; msg.read(value); - return value.template get<Property>(); + return ::sdbusplus::message::variant_ns::get<Property>(value); } /** @brief Get a property without mapper lookup. */ |