Use const reverse iter for GCC 4.8

This commit is contained in:
Sterling Harper 2018-05-25 21:22:54 -04:00
parent af4525a1eb
commit 4614db8e2c

View file

@ -221,8 +221,9 @@ distribcell_path_inner(int32_t target_cell, int32_t map, int32_t target_offset,
// The target must be further down the geometry tree and contained in a fill
// cell or lattice cell in this universe. Find which cell contains the
// target.
auto cell_it {search_univ.cells.rbegin()};
for (; cell_it != search_univ.cells.rend(); ++cell_it) {
std::vector<std::int32_t>::const_reverse_iterator cell_it
{search_univ.cells.crbegin()};
for (; cell_it != search_univ.cells.crend(); ++cell_it) {
Cell &c = *cells_c[*cell_it];
// Material cells don't contain other cells so ignore them.