From 4614db8e2c2db1118befa0525b71a090822e8542 Mon Sep 17 00:00:00 2001 From: Sterling Harper Date: Fri, 25 May 2018 21:22:54 -0400 Subject: [PATCH] Use const reverse iter for GCC 4.8 --- src/geometry_aux.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/geometry_aux.cpp b/src/geometry_aux.cpp index a51e5b8a80..e79a00264b 100644 --- a/src/geometry_aux.cpp +++ b/src/geometry_aux.cpp @@ -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::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.