summaryrefslogtreecommitdiffstats
path: root/sensor.cpp
diff options
context:
space:
mode:
authorWilliam A. Kennington III <wak@google.com>2018-10-18 19:19:51 -0700
committerWilliam A. Kennington III <wak@google.com>2018-10-18 19:19:51 -0700
commit4cbdfef205ba4011018a3a287dd238e00509a757 (patch)
tree9c6ea5017b5749f91381ddd1ad5ccaddb6b70398 /sensor.cpp
parent0956017412c84ac2a264d44dbb3f201d2f6c96f1 (diff)
downloadphosphor-hwmon-4cbdfef205ba4011018a3a287dd238e00509a757.tar.gz
phosphor-hwmon-4cbdfef205ba4011018a3a287dd238e00509a757.zip
Remove old experimental includes
We are now using c++17 so we no longer need experimental optional and any. We can use the standard any and optional now. Change-Id: I88fcb4258c69ac5ad9766e2c65463c52a3b7f05f Signed-off-by: William A. Kennington III <wak@google.com>
Diffstat (limited to 'sensor.cpp')
-rw-r--r--sensor.cpp4
1 files changed, 1 insertions, 3 deletions
diff --git a/sensor.cpp b/sensor.cpp
index 21f3d87..0a0971f 100644
--- a/sensor.cpp
+++ b/sensor.cpp
@@ -118,9 +118,7 @@ std::shared_ptr<ValueObject> Sensor::addValue(const RetryIO& retryIO,
auto it = obj.find(InterfaceType::STATUS);
if (it != obj.end())
{
- statusIface =
- std::experimental::any_cast<std::shared_ptr<StatusObject>>(
- it->second);
+ statusIface = std::any_cast<std::shared_ptr<StatusObject>>(it->second);
}
// If there's no fault file or the sensor has a fault file and
OpenPOWER on IntegriCloud