Skip to content

Commit

Permalink
removed deprecated filesystem extension() function
Browse files Browse the repository at this point in the history
  • Loading branch information
simogasp committed Jun 12, 2024
1 parent 8fe997c commit 0ac133a
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/applications/detection/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@
#include <boost/archive/xml_oarchive.hpp>
#include <boost/exception/all.hpp>
#include <boost/filesystem.hpp>
#include <boost/filesystem/convenience.hpp>
#include <boost/ptr_container/ptr_list.hpp>
#include <boost/timer/timer.hpp>
#include <opencv2/core/core.hpp>
Expand Down Expand Up @@ -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"))
{
Expand Down

0 comments on commit 0ac133a

Please sign in to comment.