c++17: drop experimental::filesystem
Use the real filesystem library, and drop support for building with
experimental under c++14.
Signed-off-by: Jayanth Othayoth <ojayanth@in.ibm.com>
Change-Id: I730c0d6dce53b5e0aa0867cddb7f325cdb9b45fc
diff --git a/bmc_dump_entry.hpp b/bmc_dump_entry.hpp
index da63b25..f227641 100644
--- a/bmc_dump_entry.hpp
+++ b/bmc_dump_entry.hpp
@@ -22,8 +22,6 @@
using EntryIfaces = sdbusplus::server::object::object<
sdbusplus::xyz::openbmc_project::Dump::Entry::server::BMC>;
-namespace fs = std::experimental::filesystem;
-
class Manager;
/** @class Entry
@@ -53,7 +51,8 @@
* @param[in] parent - The dump entry's parent.
*/
Entry(sdbusplus::bus::bus& bus, const std::string& objPath, uint32_t dumpId,
- uint64_t timeStamp, uint64_t fileSize, const fs::path& file,
+ uint64_t timeStamp, uint64_t fileSize,
+ const std::filesystem::path& file,
phosphor::dump::OperationStatus status,
phosphor::dump::Manager& parent) :
EntryIfaces(bus, objPath.c_str(), true),
@@ -81,7 +80,8 @@
* @param[in] fileSize - Dump file size in bytes.
* @param[in] file - Name of dump file.
*/
- void update(uint64_t timeStamp, uint64_t fileSize, const fs::path& filePath)
+ void update(uint64_t timeStamp, uint64_t fileSize,
+ const std::filesystem::path& filePath)
{
elapsed(timeStamp);
size(fileSize);
@@ -95,7 +95,7 @@
private:
/** @Dump file name */
- fs::path file;
+ std::filesystem::path file;
};
} // namespace bmc