File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -150,14 +150,14 @@ uint64_t TriangulatedSetRepresentation::getTriangleCountOfPatch(uint64_t patchIn
150150
151151uint64_t TriangulatedSetRepresentation::getTriangleCountOfAllPatches () const
152152{
153- auto const & patches = static_cast <_resqml20__TriangulatedSetRepresentation const *>(gsoapProxy2_0_1)->TrianglePatch ;
154-
155- return std::transform_reduce (
156- patches.begin (),
157- patches.end (),
153+ return std::accumulate (
154+ static_cast <_resqml20__TriangulatedSetRepresentation const *>(gsoapProxy2_0_1)->TrianglePatch .begin (),
155+ static_cast <_resqml20__TriangulatedSetRepresentation const *>(gsoapProxy2_0_1)->TrianglePatch .end (),
158156 uint64_t { 0 },
159- std::plus<>{},
160- [](auto * patch) { return patch->Count ; }
157+ [](uint64_t a, resqml20__TrianglePatch const * b) {
158+ return a + b->Count ;
159+ }
160+
161161 );
162162}
163163
You can’t perform that action at this time.
0 commit comments