Skip to content

Commit 0ac133a

Browse files
committed
removed deprecated filesystem extension() function
1 parent 8fe997c commit 0ac133a

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/applications/detection/main.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@
2121
#include <boost/archive/xml_oarchive.hpp>
2222
#include <boost/exception/all.hpp>
2323
#include <boost/filesystem.hpp>
24-
#include <boost/filesystem/convenience.hpp>
2524
#include <boost/ptr_container/ptr_list.hpp>
2625
#include <boost/timer/timer.hpp>
2726
#include <opencv2/core/core.hpp>
@@ -501,7 +500,7 @@ int main(int argc, char** argv)
501500
tbb::parallel_for(0, 2, [&](size_t fileListIdx) {
502501
for(const auto& fileInFolder : files[fileListIdx])
503502
{
504-
const std::string subExt(bfs::extension(fileInFolder.second));
503+
const std::string subExt(fileInFolder.second.extension().string());
505504

506505
if((subExt == ".png") || (subExt == ".jpg") || (subExt == ".PNG") || (subExt == ".JPG"))
507506
{

0 commit comments

Comments
 (0)