We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6a9eac8 commit fa526e0Copy full SHA for fa526e0
mapmap/source/cost_instances/pairwise_table.impl.h
@@ -98,9 +98,12 @@ set_costs(
98
99
/* expand table into aligned storage */
100
for(_iv_st<COSTTYPE, SIMDWIDTH> li_a = 0; li_a < len_a; ++li_a)
101
- std::copy(&packed_table[li_a * len_b],
102
- &packed_table[(li_a + 1) * len_b],
103
- &m_packed_table[li_a * padded_b]);
+ {
+ std::copy(
+ packed_table.begin() + (li_a * len_b),
104
+ packed_table.begin() + ((li_a + 1) * len_b),
105
+ m_packed_table + (li_a * padded_b));
106
+ }
107
}
108
109
/* ************************************************************************** */
0 commit comments