remove std::experimental usage
All of the std::experimental usages in this repository have a well
supported counterpart in std as of C++17. Switch to use them.
Signed-off-by: Patrick Williams <patrick@stwcx.xyz>
Change-Id: I4cdf5cd27053ce85c7f70c215ee9456f96f79f42
diff --git a/src/event.hpp b/src/event.hpp
index 7ce764b..d8ab917 100644
--- a/src/event.hpp
+++ b/src/event.hpp
@@ -52,7 +52,7 @@
const auto& storage = std::get<storageIndex>(n.second);
const auto& value = std::get<valueIndex>(storage.get());
- if (!value.empty())
+ if (value.has_value())
{
createEvent(path, propertyMeta, value);
}
@@ -69,7 +69,7 @@
*/
virtual void createEvent(const std::string& path,
const std::string& property,
- const any_ns::any& value) const = 0;
+ const std::any& value) const = 0;
};
/** @class Event
@@ -109,10 +109,10 @@
* @param[in] value - Changed property value.
*/
void createEvent(const std::string& path, const std::string& property,
- const any_ns::any& value) const override
+ const std::any& value) const override
{
std::stringstream ss{};
- ss << any_ns::any_cast<T>(value);
+ ss << std::any_cast<T>(value);
phosphor::events::getManager().create(name, message, path, property,
ss.str());
}