Skip to content

Commit 002df6b

Browse files
committed
c++11 compat
1 parent e0d37cc commit 002df6b

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

flux.hpp

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -732,10 +732,11 @@ namespace Flux {
732732
const int ref_index = ref_pair.second;
733733

734734
if (offsets.find(ref_index) == offsets.end()) {
735-
offsets[ref_index] = {0, 0};
735+
offsets[ref_index] = std::make_pair(0, 0);
736736
}
737737

738-
auto& [h_offset, w_offset] = offsets[ref_index];
738+
uint64_t h_offset = offsets[ref_index].first;
739+
uint64_t w_offset = offsets[ref_index].second;
739740

740741
uint64_t curr_h = 0;
741742
uint64_t curr_w = 0;
@@ -749,8 +750,8 @@ namespace Flux {
749750
ids = concat_ids(ids, ref_ids, bs);
750751

751752
// Update offsets
752-
h_offset = std::max(h_offset, ref->ne[1] + curr_h);
753-
w_offset = std::max(w_offset, ref->ne[0] + curr_w);
753+
offsets[ref_index].first = std::max(h_offset, ref->ne[1] + curr_h);
754+
offsets[ref_index].second = std::max(w_offset, ref->ne[0] + curr_w);
754755
}
755756

756757
return ids;

0 commit comments

Comments
 (0)