Use C++17 optional and any
The optional and any types are no longer experimental
in C++17.
Change-Id: I0b507b73fdd13afe531bef7a2ce308ebc8a3da7d
Signed-off-by: Matt Spinler <spinler@us.ibm.com>
diff --git a/policy_table.hpp b/policy_table.hpp
index a2e7346..d6bf307 100644
--- a/policy_table.hpp
+++ b/policy_table.hpp
@@ -2,8 +2,8 @@
#include "config.h"
-#include <experimental/optional>
#include <map>
+#include <optional>
#include <vector>
namespace ibm
@@ -26,11 +26,9 @@
std::string ceid;
};
-namespace optional_ns = std::experimental;
-
using DetailsList = std::vector<Details>;
using DetailsReference = std::reference_wrapper<const Details>;
-using FindResult = optional_ns::optional<DetailsReference>;
+using FindResult = std::optional<DetailsReference>;
using PolicyMap = std::map<std::string, DetailsList>;