summaryrefslogtreecommitdiff
path: root/redfish-core/lib/chassis.hpp
diff options
context:
space:
mode:
authorEd Tanous <ed.tanous@intel.com>2019-01-23 03:40:12 +0300
committerEd Tanous <ed.tanous@intel.com>2019-02-09 04:54:39 +0300
commitabf2add6a35aaf42ba60c4ae955a4d8925b13b19 (patch)
treefe3e8aadb5bb92455cf504d50d7a99478b35ec67 /redfish-core/lib/chassis.hpp
parent734bfe90949b230b1d3e061522f45903c10c7b08 (diff)
downloadbmcweb-abf2add6a35aaf42ba60c4ae955a4d8925b13b19.tar.xz
bmcweb: move variant usage to std namespace
Change-Id: I9d7069668f91f2ac72d2f4a440f63e0e85dd5269 Signed-off-by: Ed Tanous <ed.tanous@intel.com>
Diffstat (limited to 'redfish-core/lib/chassis.hpp')
-rw-r--r--redfish-core/lib/chassis.hpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/redfish-core/lib/chassis.hpp b/redfish-core/lib/chassis.hpp
index fe6cdefd6e..fd03c8f596 100644
--- a/redfish-core/lib/chassis.hpp
+++ b/redfish-core/lib/chassis.hpp
@@ -18,6 +18,7 @@
#include "node.hpp"
#include <boost/container/flat_map.hpp>
+#include <variant>
namespace redfish
{
@@ -29,7 +30,7 @@ namespace redfish
// Note, this is not a very useful Variant, but because it isn't used to get
// values, it should be as simple as possible
// TODO(ed) invent a nullvariant type
-using VariantType = sdbusplus::message::variant<bool, std::string, uint64_t>;
+using VariantType = std::variant<bool, std::string, uint64_t>;
using ManagedObjectsType = std::vector<std::pair<
sdbusplus::message::object_path,
std::vector<std::pair<std::string,
@@ -201,8 +202,7 @@ class Chassis : public Node
&property : propertiesList)
{
const std::string *value =
- sdbusplus::message::variant_ns::get_if<
- std::string>(&property.second);
+ std::get_if<std::string>(&property.second);
if (value != nullptr)
{
asyncResp->res.jsonValue[property.first] =