diff options
author | William A. Kennington III <wak@google.com> | 2018-11-06 17:11:28 -0800 |
---|---|---|
committer | William A. Kennington III <wak@google.com> | 2018-11-06 17:13:50 -0800 |
commit | 6e94b65268382de661512646668d8e32ec73d755 (patch) | |
tree | f9f98b8279627da378b7f86d62e0831fa6e8237a /test/test.cpp | |
parent | 979eb591652fba30f86ec5b7f5c5f73c06651c70 (diff) | |
download | phosphor-inventory-manager-6e94b65268382de661512646668d8e32ec73d755.tar.gz phosphor-inventory-manager-6e94b65268382de661512646668d8e32ec73d755.zip |
Fix std::variant usage
This change makes it possible to use std::variant as a drop in
replacement for mapbox::variant.
Change-Id: Ia729c3a7832eec4dd6cddadba9bc160b6ba9ad90
Signed-off-by: William A. Kennington III <wak@google.com>
Diffstat (limited to 'test/test.cpp')
-rw-r--r-- | test/test.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/test/test.cpp b/test/test.cpp index 2327239..cf61b84 100644 --- a/test/test.cpp +++ b/test/test.cpp @@ -425,7 +425,8 @@ b.call(m); sig.read(sigInterface); assert(sigInterface == "xyz.openbmc_project.Example.Iface1"); sig.read(sigProperties); - assert(sigProperties["ExampleProperty1"] == "changed"); + assert(sdbusplus::message::variant_ns::get<std::string>( + sigProperties["ExampleProperty1"]) == "changed"); } } } |