Skip to content

avoid using `std::accumulate`

Utkarsh Ayachit requested to merge utkarsh.ayachit/vtk:fix-msvc-issues into master

vtkCompositeDataSet::GetNumberOfElements was causing segfaults when called on CTH AMR on MSVC. The std::accumulate implementation was causing invalid access when copying state for the internals used by CompositeDataSetRange. Avoiding it.

Adding some asserts to catch such issues sooner.


Topic-rename: vtkCompositeDataSet-avoid-std-accumulate-over-vtkCompositeDataSetRange

Edited by Ben Boeckel

Merge request reports