summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorWilliam A. Kennington III <wak@google.com>2018-11-06 16:28:18 -0800
committerWilliam A. Kennington III <wak@google.com>2018-11-06 16:28:24 -0800
commit52fbe0d934f8d33ac5fed906df2101c826f566af (patch)
tree900b96170b43cba52c9c939af11a0f3de2916105
parent8ce4b5f55a93bb074bb28a66bdcb5209ea54880e (diff)
downloadphosphor-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>
-rw-r--r--sdbusplus.hpp4
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. */
OpenPOWER on IntegriCloud