
2011/10/20 Krzysztof Czainski <1czajnik@gmail.com>
Isn't that more or less the same as: http://www.boost.org/doc/libs/**
1_47_0/libs/numeric/**conversion/doc/html/boost_** numericconversion/improved_**numeric_cast__.html<http://www.boost.org/doc/libs/1_47_0/libs/numeric/conversion/doc/html/boost_numericconversion/improved_numeric_cast__.html>
John.
I thought that was only for checking range. Or do you mean round(), and then numeric_cast<>() instead of checking range manually in round_cast<>()?
Ah, that can be customized with a policy, but the only rounding (not Floor/Ceil/Trunc) policy provided is RoundEven which doesn't do exactly what I want, while math::round does ;) Besides, with math::round() I can use the same policy I use for other math functions. Regards, Kris