summaryrefslogtreecommitdiffstats
path: root/types.hpp
diff options
context:
space:
mode:
authorBrad Bishop <bradleyb@fuzziesquirrel.com>2017-02-08 23:57:46 -0500
committerBrad Bishop <bradleyb@fuzziesquirrel.com>2017-02-09 20:37:04 -0500
commit150147aed2951ba0b5c925b2c4f023c5e01f7272 (patch)
treeee6bb4039081aa4b72dd130e379e0854920b34d0 /types.hpp
parent07934a6447905f97a1ef9ca65c20a7bf8e71564e (diff)
downloadphosphor-inventory-manager-150147aed2951ba0b5c925b2c4f023c5e01f7272.tar.gz
phosphor-inventory-manager-150147aed2951ba0b5c925b2c4f023c5e01f7272.zip
Use std::any
Replace holder types with std::any. Change-Id: I0cd8c2804ad4bff79a0cfe93589e699afb095e5f Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com>
Diffstat (limited to 'types.hpp')
-rw-r--r--types.hpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/types.hpp b/types.hpp
index ce43d11..fff52d5 100644
--- a/types.hpp
+++ b/types.hpp
@@ -3,6 +3,7 @@
#include <map>
#include <string>
#include <sdbusplus/message.hpp>
+#include <experimental/any>
namespace phosphor
{
@@ -11,6 +12,8 @@ namespace inventory
namespace manager
{
+namespace any_ns = std::experimental;
+
/** @brief Inventory manager supported property types. */
using InterfaceVariantType =
sdbusplus::message::variant<bool, int64_t, std::string>;
OpenPOWER on IntegriCloud