From 47399224fa23fca0eec9441a0c6e4a5154700325 Mon Sep 17 00:00:00 2001 From: James Wilson Date: Sun, 20 Oct 2024 14:55:57 -0700 Subject: [PATCH] Replace std::bind with lambda --- src/imp/3d/imp_package_3d.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/imp/3d/imp_package_3d.cpp b/src/imp/3d/imp_package_3d.cpp index 15aac57a..0e0497b4 100644 --- a/src/imp/3d/imp_package_3d.cpp +++ b/src/imp/3d/imp_package_3d.cpp @@ -67,8 +67,7 @@ std::vector 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 {