Fix entity-manager issues against GCC8
move std::experimental::filesystem to std::filesystem, and fix an error
in a function that returns bool, but didn't contain a return statement.
Change-Id: Iaedfc5ea189fa5382e4b29be5854cb72915a742d
Signed-off-by: Ed Tanous <ed.tanous@intel.com>
Signed-off-by: James Feist <james.feist@linux.intel.com>
diff --git a/src/Utils.cpp b/src/Utils.cpp
index be7b35c..dda3b40 100644
--- a/src/Utils.cpp
+++ b/src/Utils.cpp
@@ -15,7 +15,7 @@
*/
#include <Utils.hpp>
-#include <experimental/filesystem>
+#include "filesystem.hpp"
#include <fstream>
#include <regex>
#include <valijson/adapters/nlohmann_json_adapter.hpp>
@@ -23,7 +23,7 @@
#include <valijson/schema_parser.hpp>
#include <valijson/validator.hpp>
-namespace fs = std::experimental::filesystem;
+namespace fs = std::filesystem;
bool findFiles(const fs::path &dirPath, const std::string &matchString,
std::vector<fs::path> &foundPaths)
@@ -57,4 +57,4 @@
return false;
}
return true;
-}
\ No newline at end of file
+}