Boost logo

Boost :

From: Fernando Cacciola (fernando_cacciola_at_[hidden])
Date: 2003-06-20 14:24:35


Hi All!

I hereby request a formal review of the Numeric Conversions library,
which can be found here:

http://groups.yahoo.com/group/boost/files/numeric_conversions.zip

Here's an except of the 'Overview' documentation section:

--------------------------------------------------
The Boost Numeric Conversion library is a collection of tools
to describe and perform conversions between values of different
numeric types.

The library includes a special alternative for a subset of
std::numeric_limits<>, the bounds<> traits class, which provides
a consistent way to obtain the boundary values for the range
of a numeric type.

It also includes a traits class conversion_traits<> which describes
the compile-time properties of a conversion from a source
to a target numeric type.
Both arithmetic and user-defined numeric types can be used.

A policy-based converter object which uses conversion_traits<>
to select an optimized implementation is supplied.
Such implementation uses an optimal range checking code suitable
for the source/target combination.
The converter's out-of-range behavior can be customized via
an OverflowHandler policy.
For floating-point to integral conversions, the rounding mode can
be selected via the Float2IntRounder policy.
can be passed via a RawConverter policy.
The optimized automatic range-checking logic can be overridden
via a UserRangeChecker policy.
-------------------------

Fernando Cacciola


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