Skip to content

Commit

Permalink
Merge pull request #55 from lindsayad/last-vector-references
Browse files Browse the repository at this point in the history
Clean out missed std::vector::reference
  • Loading branch information
lindsayad authored Aug 26, 2019
2 parents 0e66fc9 + 10c0591 commit fb69285
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/numerics/include/metaphysicl/dynamicsparsenumberbase.h
Original file line number Diff line number Diff line change
Expand Up @@ -1083,7 +1083,7 @@ operator opname(const DynamicSparseNumberBase<Data, Indices, SubType, SubTypeArg
const IS index_out = *index_out_it; \
const TS data_a = (index_a_it == a.nude_indices().end()) ? 0: *data_a_it; \
const TS data_b = (index_b_it == b.nude_indices().end()) ? 0: *data_b_it; \
typename std::vector<TS>::reference data_out = *data_out_it; \
TS & data_out = *data_out_it; \
\
if (index_a == index_out) { \
if (index_b == index_out) { \
Expand Down Expand Up @@ -1272,7 +1272,7 @@ funcname(const DynamicSparseNumberBase<Data, Indices, SubType, SubTypeArgs...> &
const IS index_out = *index_out_it; \
const TS data_a = (index_a_it == a.nude_indices.end()) ? 0: *data_a_it; \
const TS data_b = (index_b_it == b.nude_indices.end()) ? 0: *data_b_it; \
typename std::vector<TS>::reference data_out = *data_out_it; \
TS & data_out = *data_out_it; \
\
if (index_a == index_out) { \
if (index_b == index_out) { \
Expand Down

0 comments on commit fb69285

Please sign in to comment.