ports/devel/sdsl-lite/files/patch-include_sdsl_louds__tree.hpp
Yuri Victorovich af74f60a87 devel/sdsl-lite: Fix build on 15 with clang-19
Reported by:	fallout
2024-11-02 23:47:53 -07:00

19 lines
735 B
C++

- fix build with clang-19, see https://github.com/simongog/sdsl-lite/issues/462
--- include/sdsl/louds_tree.hpp.orig 2024-11-03 05:50:59 UTC
+++ include/sdsl/louds_tree.hpp
@@ -176,12 +176,13 @@ class louds_tree
return v.nr;
}
-
+#if 0
void swap(louds_tree& tree) {
m_bv.swap(tree.m_bv);
util::swap_support(m_bv_select1, tree.m_select1, &m_bv, &(tree.m_bv));
util::swap_support(m_bv_select0, tree.m_select0, &m_bv, &(tree.m_bv));
}
+#endif
size_type serialize(std::ostream& out, structure_tree_node* v=nullptr, std::string name="")const {
structure_tree_node* child = structure_tree::add_child(v, name, util::class_name(*this));