Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit f73ed7f

Browse files
committedNov 21, 2024
Fixed call to directory_entry.is_regular_file to work on older Boost versions
The method boost::filesytem::directory_entry.is_regular_file was added starting in version 1.83, but the lowest Boost version of this project is 1.66.0.
1 parent f7a25ca commit f73ed7f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎src/slic3r/GUI/BackgroundSlicingProcess.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ BackgroundSlicingProcess::~BackgroundSlicingProcess()
120120
std::string prefix = boost::filesystem::path(m_temp_output_path).filename().string();
121121
prefix = prefix.substr(0, prefix.find('_'));
122122
for (const auto& entry : boost::filesystem::directory_iterator(temp_dir)) {
123-
if (entry.is_regular_file()) {
123+
if (boost::filesystem::is_regular_file(entry.path())) {
124124
const std::string filename = entry.path().filename().string();
125125
if (boost::starts_with(filename, prefix) && boost::ends_with(filename, ".gcode"))
126126
boost::filesystem::remove(entry);

0 commit comments

Comments
 (0)
Please sign in to comment.