Fix std::variant usage
Use the std::get() interface instead of mapbox specific .get() member
interface.
Change-Id: I4ce467c49ea418adba422bbd09fa829acd53da3c
Signed-off-by: William A. Kennington III <wak@google.com>
diff --git a/msl_verify.cpp b/msl_verify.cpp
index 7f72cac..dc4238c 100644
--- a/msl_verify.cpp
+++ b/msl_verify.cpp
@@ -15,6 +15,7 @@
{
namespace fs = std::experimental::filesystem;
+namespace variant_ns = sdbusplus::message::variant_ns;
using namespace phosphor::logging;
using AssociationList =
std::vector<std::tuple<std::string, std::string, std::string>>;
@@ -100,7 +101,7 @@
return {};
}
- auto& assocs = associations.get<AssociationList>();
+ auto& assocs = variant_ns::get<AssociationList>(associations);
if (assocs.empty())
{
return {};
@@ -120,7 +121,7 @@
try
{
response.read(functionalVersion);
- return (functionalVersion.get<std::string>());
+ return variant_ns::get<std::string>(functionalVersion);
}
catch (const sdbusplus::exception::SdBusError& e)
{