
20 Apr
2006
20 Apr
'06
5:51 p.m.
Pavel Vozenilek wrote:
7. The temptation to use std::lower_bound and similarly dangeroud std algorithm may be eliminated by defining unimplemented specialisations for ptree
You can always sort the tree and then use the algorithm safely, so banning it would not be wise.
Hmm. Perhaps specialisations could be written that in debug mode check the tree is actually sorted.
What kind of dangerousness are we talking about here: a crash or false results? -Thorsten