Skip to content

Commit

Permalink
Replace std::bind with lambda
Browse files Browse the repository at this point in the history
  • Loading branch information
jmwilson committed Oct 20, 2024
1 parent f0b5d68 commit 4739922
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/imp/3d/imp_package_3d.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -67,8 +67,7 @@ std::vector<std::string> ImpPackage::ask_3d_model_filenames()
replace_backslash(rel_path);
rel_names.push_back(rel_path);
}
if (std::none_of(rel_names.cbegin(), rel_names.cend(),
std::bind(std::string::empty, std::placeholders::_1))) {
if (std::none_of(rel_names.cbegin(), rel_names.cend(), [](const auto &s) { return s.empty(); })) {
return rel_names;
}
else {
Expand Down

0 comments on commit 4739922

Please sign in to comment.