Skip to content
Snippets Groups Projects
Commit a34a70de authored by Sam Yates's avatar Sam Yates
Browse files

Merge remote-tracking branch 'upstream/feature/model-refactor' into feature/model+recipe

parents a362039a 4b1a019c
No related branches found
No related tags found
No related merge requests found
Subproject commit 588ca1a5ea28ef04d17b318e754d479e5489eb9a
Subproject commit b200bf6376a2dc30edea98fcc2375fc9be095135
......@@ -141,7 +141,7 @@ bool has_contiguous_segments(const C& parent_index)
return false;
}
if(p != i-1) {
if(p != decltype(p)(i-1)) {
// we have a branch and i-1 is a leaf node
is_leaf[i-1] = true;
}
......@@ -174,7 +174,7 @@ std::vector<typename C::value_type> branches(const C& parent_index)
"integral type required"
);
EXPECTS(has_contiguous_segments(parent_index));
//EXPECTS(has_contiguous_segments(parent_index));
std::vector<typename C::value_type> branch_index;
if (parent_index.empty()) {
......@@ -250,7 +250,7 @@ std::vector<typename C::value_type> make_parent_index(
}
EXPECTS(parent_index.size() == unsigned(branch_index.back()));
EXPECTS(has_contiguous_segments(parent_index));
//EXPECTS(has_contiguous_segments(parent_index));
EXPECTS(is_strictly_monotonic_increasing(branch_index));
// expand the branch index
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment