Boost logo

Boost :

From: Thorsten Ottosen (thorsten.ottosen_at_[hidden])
Date: 2006-04-20 13:51:33


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


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk