diff options
author | William A. Kennington III <wak@google.com> | 2018-11-06 16:28:18 -0800 |
---|---|---|
committer | William A. Kennington III <wak@google.com> | 2018-11-06 16:28:24 -0800 |
commit | 52fbe0d934f8d33ac5fed906df2101c826f566af (patch) | |
tree | 900b96170b43cba52c9c939af11a0f3de2916105 /sdbusplus.hpp | |
parent | 8ce4b5f55a93bb074bb28a66bdcb5209ea54880e (diff) | |
download | phosphor-fan-presence-52fbe0d934f8d33ac5fed906df2101c826f566af.tar.gz phosphor-fan-presence-52fbe0d934f8d33ac5fed906df2101c826f566af.zip |
Fix std::variant usage
We need to use the std::get() interface instead of the mapbox .get()
member interface for variant compatibility.
Change-Id: I6c7843ea0cb765332457273867b5df6b78ca72a2
Signed-off-by: William A. Kennington III <wak@google.com>
Diffstat (limited to 'sdbusplus.hpp')
-rw-r--r-- | sdbusplus.hpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sdbusplus.hpp b/sdbusplus.hpp index 41c7fe2..8a5b2f4 100644 --- a/sdbusplus.hpp +++ b/sdbusplus.hpp @@ -339,7 +339,7 @@ class SDBusPlus } 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 with mapper lookup. */ @@ -433,7 +433,7 @@ class SDBusPlus } 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. */ |