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")) {