Replace std::experimental::filesystem with std::filesystem
Above c++17, std::filesystem is already supported, so replace
std::experimental::filesystem with std::filesystem.
Signed-off-by: George Liu <liuxiwei@inspur.com>
Change-Id: I864bd80905e9b61428d17b20a91b3482198d20bc
diff --git a/sysfs.hpp b/sysfs.hpp
index a8de9bd..fbf5e78 100644
--- a/sysfs.hpp
+++ b/sysfs.hpp
@@ -15,7 +15,7 @@
*/
#pragma once
-#include <experimental/filesystem>
+#include <filesystem>
namespace phosphor
{
@@ -24,7 +24,7 @@
class SysfsLed
{
public:
- SysfsLed(std::experimental::filesystem::path&& root) : root(std::move(root))
+ SysfsLed(std::filesystem::path&& root) : root(std::move(root))
{}
SysfsLed() = delete;
SysfsLed(const SysfsLed& other) = delete;
@@ -48,7 +48,7 @@
static constexpr char DELAY_ON[] = "delay_on";
static constexpr char DELAY_OFF[] = "delay_off";
- std::experimental::filesystem::path root;
+ std::filesystem::path root;
};
} // namespace led
} // namespace phosphor