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/watch.cpp b/watch.cpp
index 659320a..137ff76 100644
--- a/watch.cpp
+++ b/watch.cpp
@@ -24,13 +24,14 @@
}
Watch::Watch(const EventPtr& eventObj, const int flags, const uint32_t mask,
- const uint32_t events, const fs::path& path, UserType userFunc) :
+ const uint32_t events, const std::filesystem::path& path,
+ UserType userFunc) :
flags(flags),
mask(mask), events(events), path(path), fd(inotifyInit()),
userFunc(userFunc)
{
// Check if watch DIR exists.
- if (!fs::is_directory(path))
+ if (!std::filesystem::is_directory(path))
{
log<level::ERR>("Watch directory doesn't exist",
entry("DIR=%s", path.c_str()));