Boost logo

Boost :

From: Kristian Dupont (secondary_at_[hidden])
Date: 2005-01-14 07:31:57


> Please, take a look at the new Boost Numeric Conversion Library:
>
> http://www.boost.org/libs/numeric/conversion/doc/index.html
>
> It replaces numeric_cast<> in cast.hpp (except for BCB and VC6 for which
> the new code has not been ported yet)

You are right. I didn't realize that this library was a replacement for
numeric_cast.

> Altough what you suggested is not supported by the new code, it would be
> easy to add a policy to select this saturating behaviour.. I used it in
> the past and I know that in certain contexts is very useful.

It often is when working with "signal"-kinds of data where performance or
memory is more important than accuracy.

Kristian Dupont


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