Boost logo

Boost :

From: John Maddock (john_at_[hidden])
Date: 2008-04-30 04:34:20


Steven Watanabe wrote:
> It's more intuitive to get the unsigned value from the signed than the
> other way around.
> std::abs(edit_distance(a, b))
>
> vs.
>
> copysign(edit_distance(a, b), b - a)

Yep, that's sort of the view I'm coming round to: even though I implemented
it as returning an unsigned value initially :-(

John.


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