Sketcher: Refactor C++20 code

This commit is contained in:
Chris Hennes
2025-01-19 19:42:43 -06:00
parent 034ad6582a
commit 666ede9019

View File

@@ -6767,8 +6767,9 @@ int SketchObject::deleteUnusedInternalGeometryWhenBSpline(int GeoId, bool delgeo
}
// look for a point at geoid index
numConstr = std::count_if(vals.begin(), vals.end(), [&kGeoId](const auto& constr) {
return constr->involvesGeoId(kGeoId);
auto tempGeoID = kGeoId; // C++17 and earlier do not support captured structured bindings
numConstr = std::count_if(vals.begin(), vals.end(), [&tempGeoID](const auto& constr) {
return constr->involvesGeoId(tempGeoID);
});
if (numConstr < 2) { // IA