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 /src/propertywatchimpl.hpp | |
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 'src/propertywatchimpl.hpp')
-rw-r--r-- | src/propertywatchimpl.hpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/propertywatchimpl.hpp b/src/propertywatchimpl.hpp index 2a44abc..94d6fd2 100644 --- a/src/propertywatchimpl.hpp +++ b/src/propertywatchimpl.hpp @@ -155,7 +155,7 @@ void PropertyWatchOfType<T, DBusInterfaceType>::propertiesChanged( } std::get<valueIndex>(std::get<storageIndex>(item->second).get()) = - p.second.template get<T>(); + sdbusplus::message::variant_ns::get<T>(p.second); // Invoke callback if present. this->callback(Context::SIGNAL); |