sdbusplus: replace message::variant with std::variant
Signed-off-by: Patrick Williams <patrick@stwcx.xyz>
Change-Id: Iea684a5a06d6d8f3e83b0dc1d7b8080dc2751466
diff --git a/functor.hpp b/functor.hpp
index 0c328d9..67dc4de 100644
--- a/functor.hpp
+++ b/functor.hpp
@@ -211,7 +211,7 @@
bool operator()(sdbusplus::bus::bus&, sdbusplus::message::message& msg,
Manager&) const
{
- std::map<std::string, sdbusplus::message::variant<T>> properties;
+ std::map<std::string, std::variant<T>> properties;
const char* iface = nullptr;
msg.read(iface);
@@ -351,7 +351,7 @@
*/
bool eval(sdbusplus::message::message& msg) const override
{
- sdbusplus::message::variant<T> value;
+ std::variant<T> value;
msg.read(value);
return _condition(std::forward<T>(std::get<T>(value)));
}