fixes #248 Convert to a tree on omt clone if it must support marks

This commit is contained in:
John Esmet 2014-05-22 18:57:56 -04:00
parent 412f1d9f36
commit 462f601236

View file

@ -207,6 +207,9 @@ void omt<omtdata_t, omtdataout_t, supports_marks>::clone(const omt &src) {
src.fill_array_with_subtree_values(&this->d.a.values[0], src.d.t.root);
}
this->d.a.num_values = src.size();
if (supports_marks) {
this->convert_to_tree();
}
}
template<typename omtdata_t, typename omtdataout_t, bool supports_marks>