diff options
author | Kun Yi <kunyi731@gmail.com> | 2019-03-27 09:53:51 -0700 |
---|---|---|
committer | Brad Bishop <bradleyb@fuzziesquirrel.com> | 2019-04-10 01:21:01 +0000 |
commit | e6b21c74581c30ea635aabbbc08d0a56f8e27063 (patch) | |
tree | a17dce5ab95cc0460d2dfdd9eb03180a17c960b6 | |
parent | 2ed0fd1025c2f6a10b5df04f27cfbebbb2314395 (diff) | |
download | phosphor-inventory-manager-e6b21c74581c30ea635aabbbc08d0a56f8e27063.tar.gz phosphor-inventory-manager-e6b21c74581c30ea635aabbbc08d0a56f8e27063.zip |
cleanup: Use filesystem instead of experimental
With Thud(Yocto 2.6) bumping gcc version, std::filesystem
is available.
Change-Id: I1837df14e52be3e2007b941c3f9c0d3efc687027
Signed-off-by: Kun Yi <kunyi731@gmail.com>
-rw-r--r-- | manager.cpp | 4 | ||||
-rw-r--r-- | serialize.hpp | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/manager.cpp b/manager.cpp index fd33c80..a665ea8 100644 --- a/manager.cpp +++ b/manager.cpp @@ -20,7 +20,7 @@ #include <algorithm> #include <chrono> #include <exception> -#include <experimental/filesystem> +#include <filesystem> #include <iostream> #include <phosphor-logging/log.hpp> @@ -307,7 +307,7 @@ const std::any& Manager::getInterfaceHolder(const char* path, void Manager::restore() { - namespace fs = std::experimental::filesystem; + namespace fs = std::filesystem; if (!fs::exists(fs::path(PIM_PERSIST_PATH))) { diff --git a/serialize.hpp b/serialize.hpp index e724919..4028899 100644 --- a/serialize.hpp +++ b/serialize.hpp @@ -3,7 +3,7 @@ #include "config.h" #include <cereal/archives/json.hpp> -#include <experimental/filesystem> +#include <filesystem> #include <fstream> #include <phosphor-logging/log.hpp> @@ -14,7 +14,7 @@ namespace inventory namespace manager { -namespace fs = std::experimental::filesystem; +namespace fs = std::filesystem; struct SerialOps { |