use filesystem instead of experimental
Use filesystem now that it should be available instead of
experimental::filesystem.
Change-Id: I43758ca2fd02862cc6e3c673275d8e2120d02ff2
Signed-off-by: Patrick Venture <venture@google.com>
diff --git a/cable.cpp b/cable.cpp
index 69eb8c9..b00b668 100644
--- a/cable.cpp
+++ b/cable.cpp
@@ -20,7 +20,7 @@
#include <cstdint>
#include <cstring>
-#include <experimental/filesystem>
+#include <filesystem>
#include <fstream>
#include <sstream>
#include <string>
@@ -30,7 +30,7 @@
{
namespace ipmi
{
-namespace fs = std::experimental::filesystem;
+namespace fs = std::filesystem;
struct CableRequest
{
diff --git a/configure.ac b/configure.ac
index ff8e787..26e8956 100644
--- a/configure.ac
+++ b/configure.ac
@@ -26,11 +26,6 @@
[AC_MSG_ERROR([Could not find libipmid...openbmc/phosphor-host-ipmid package required])]
)
AC_CHECK_HEADER(
- experimental/filesystem,
- [],
- [AC_MSG_ERROR([Could not find experimental/filesystem...libstdc++fs developement package required])]
-)
-AC_CHECK_HEADER(
nlohmann/json.hpp,
[],
[AC_MSG_ERROR([Could not find nlohmann/json.hpp])]
diff --git a/cpld.cpp b/cpld.cpp
index ad874b2..32c6f37 100644
--- a/cpld.cpp
+++ b/cpld.cpp
@@ -19,7 +19,7 @@
#include "main.hpp"
#include <cstring>
-#include <experimental/filesystem>
+#include <filesystem>
#include <fstream>
#include <sstream>
@@ -27,7 +27,7 @@
{
namespace ipmi
{
-namespace fs = std::experimental::filesystem;
+namespace fs = std::filesystem;
struct CpldRequest
{
diff --git a/entity_name.cpp b/entity_name.cpp
index 441220d..30b8c28 100644
--- a/entity_name.cpp
+++ b/entity_name.cpp
@@ -20,7 +20,7 @@
#include <cstdint>
#include <cstring>
-#include <experimental/filesystem>
+#include <filesystem>
#include <fstream>
#include <nlohmann/json.hpp>
#include <phosphor-logging/elog-errors.hpp>
@@ -37,7 +37,7 @@
{
namespace ipmi
{
-namespace fs = std::experimental::filesystem;
+namespace fs = std::filesystem;
namespace
{
diff --git a/pcie_i2c.cpp b/pcie_i2c.cpp
index 80d545a..c0e7fc7 100644
--- a/pcie_i2c.cpp
+++ b/pcie_i2c.cpp
@@ -20,7 +20,7 @@
#include <cstdint>
#include <cstring>
-#include <experimental/filesystem>
+#include <filesystem>
#include <fstream>
#include <regex>
#include <sstream>
@@ -32,7 +32,7 @@
{
namespace ipmi
{
-namespace fs = std::experimental::filesystem;
+namespace fs = std::filesystem;
namespace
{