commit | 07e7033076d9acfeeaa7a91ea878fa130a022824 | [log] [tgz] |
---|---|---|
author | Behdad Esfahbod <behdad@behdad.org> | Tue Aug 01 12:25:45 2023 -0600 |
committer | Behdad Esfahbod <behdad@behdad.org> | Tue Aug 01 12:25:45 2023 -0600 |
tree | 5bf3990140dd6ef3d8cfe4d6deb051871597ecef | |
parent | 7a9aac1ae3f7b836ddb314636d6f50d8ad7ec5d2 [diff] |
[graph] Error check
diff --git a/src/graph/graph.hh b/src/graph/graph.hh index e464d17..18f329b 100644 --- a/src/graph/graph.hh +++ b/src/graph/graph.hh
@@ -280,7 +280,8 @@ for (auto _ : parents) new_parents.set (id_map[_.first], _.second); - parents = std::move (new_parents); + if (!new_parents.in_error ()) + parents = std::move (new_parents); } void remap_parent (unsigned old_index, unsigned new_index)