diff options
author | William A. Kennington III <wak@google.com> | 2018-11-27 11:47:12 -0800 |
---|---|---|
committer | William A. Kennington III <wak@google.com> | 2018-11-27 11:47:31 -0800 |
commit | 4978e06c45cfe70f5ccfc6cdce92a35ae5546198 (patch) | |
tree | 75339a3c66f8d441e1264a2cf1de1abab22ccf74 | |
parent | 2c8e19883d64efb3987e55970d793bc42ffc9da8 (diff) | |
download | phosphor-fan-presence-4978e06c45cfe70f5ccfc6cdce92a35ae5546198.tar.gz phosphor-fan-presence-4978e06c45cfe70f5ccfc6cdce92a35ae5546198.zip |
std::variant: Apply missing fixup
This code is not compiled during the unit test run. The issue was
noticed trying to integrate into a real openbmc build.
Change-Id: I30b7afaf722b1a14e5ac3d5e93e13b59db48be7a
Signed-off-by: William A. Kennington III <wak@google.com>
-rw-r--r-- | control/functor.hpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/control/functor.hpp b/control/functor.hpp index e86bae7..b96f650 100644 --- a/control/functor.hpp +++ b/control/functor.hpp @@ -99,7 +99,8 @@ struct PropertyChanged return; } - _handler(zone, std::forward<T>(it->second.template get<T>())); + _handler(zone, std::forward<T>( + sdbusplus::message::variant_ns::get<T>(it->second))); } else { @@ -218,7 +219,8 @@ struct InterfaceAdded return; } - _handler(zone, std::forward<T>(itProp->second.template get<T>())); + _handler(zone, std::forward<T>( + sdbusplus::message::variant_ns::get<T>(itProp->second))); } } |