
11 Dec
2007
11 Dec
'07
1:13 a.m.
Michael Marcin skrev:
How do I partition a ptr_vector? Most of the other standard algorithms seems to be members but I cannot find partition.
Some common algorithms where added because otherwise one has to fiddle with void pointers. I plan to move away from the void* implementation, but for now you have to do something like std::next_permutation(compiledModel.steps().begin().base(), compiledModel.steps().end().base(), boost::void_ptr_indirect_fun<std::less<Step>,Step>() ); So you need to call .base() on the iterators, and then use void_ptr_indirect_fun<> (or something equivalent). -Thorsten