From 0ac133a77d5278e8624caa42046401453086030e Mon Sep 17 00:00:00 2001 From: Simone Gasparini Date: Wed, 12 Jun 2024 22:00:13 +0200 Subject: [PATCH] removed deprecated filesystem extension() function --- src/applications/detection/main.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/applications/detection/main.cpp b/src/applications/detection/main.cpp index da8243b9..6807adad 100644 --- a/src/applications/detection/main.cpp +++ b/src/applications/detection/main.cpp @@ -21,7 +21,6 @@ #include #include #include -#include #include #include #include @@ -501,7 +500,7 @@ int main(int argc, char** argv) tbb::parallel_for(0, 2, [&](size_t fileListIdx) { for(const auto& fileInFolder : files[fileListIdx]) { - const std::string subExt(bfs::extension(fileInFolder.second)); + const std::string subExt(fileInFolder.second.extension().string()); if((subExt == ".png") || (subExt == ".jpg") || (subExt == ".PNG") || (subExt == ".JPG")) {