Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[PL] Revert ranges to for-range loop
Unfortunately with gcc-13.2.1 with optimizations there is a warning, which I was not able to correct. ... inlined from ‘std::vector<std::tuple<long int, std::reference_wrapper<ProcessLib::LocalAssemblerInterface> > > {anonymous}::collectActiveLocalAssemblers(const BaseLib::PolymorphicRandomAccessContainerView<ProcessLib::LocalAssemblerInterface>&, const std::vector<long unsigned int>&)’ at /var/lib/gitlab-runner/builds/F1XUyv4cx/1/ogs/ogs/ProcessLib/Assembly/ParallelVectorMatrixAssembler.cpp:132:62: /usr/include/c++/13.2.1/bits/stl_iterator_base_funcs.h:175:9: warning: iteration 576460752303423487 invokes undefined behavior [-Waggressive-loop-optimizations] 175 | while (__n--) | ^~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_funcs.h:175:9: note: within this loop Other compilers gcc-14, clang-17 and 18, msvc had no problems with the former code.
- Loading branch information