I try to understand boost::disjoint_sets_with_storage but even the simplest example possible doesn't work and I can't understand why.
#include <boost/pending/disjoint_sets.hpp>
int main(){
boost::disjoint_sets_with_storage<> union_find;
union_find.make_set(1);
//..
}
The above code compiles but then it produces a segfault. I want use integers as elements but in the boost documentation there is no "Element" template parameter, so I assume it infers the type. But, what is the problem ? Thanks