c++17: drop experimental::filesystem
Use std::filesystem, and drop support for building with experimental
under c++14.
Change-Id: I32755f0d1b119c041978c2f8b988a16a14ba88d4
Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com>
diff --git a/procedures/openfsi/scan.cpp b/procedures/openfsi/scan.cpp
index 51f173f..e6bdd89 100644
--- a/procedures/openfsi/scan.cpp
+++ b/procedures/openfsi/scan.cpp
@@ -15,7 +15,7 @@
*/
#include "registration.hpp"
-#include <experimental/filesystem>
+#include <filesystem>
#include <fstream>
#include <org/open_power/Proc/FSI/error.hpp>
#include <phosphor-logging/elog-errors.hpp>
@@ -27,7 +27,6 @@
{
using namespace phosphor::logging;
-namespace fs = std::experimental::filesystem;
namespace fsi_error = sdbusplus::org::open_power::Proc::FSI::Error;
constexpr auto masterScanPath = "/sys/class/fsi-master/fsi0/rescan";
@@ -89,7 +88,7 @@
metadata::CALLOUT_DEVICE_PATH(masterCalloutPath));
}
- if (!fs::exists(hubScanPath))
+ if (!std::filesystem::exists(hubScanPath))
{
log<level::ERR>("The FSI master scan did not create a hub scan file");