Boost logo

Boost :

Subject: Re: [boost] [math] potentian bug: iround throws, given double( numeric_limits<int>::min() )
From: Krzysztof Czainski (1czajnik_at_[hidden])
Date: 2011-10-22 08:12:01


2011/10/22 John Maddock <boost.regex_at_[hidden]>
>
> OK, can you file a feature request at svn.boost.org so I don't forget
> this?
>
> Thanks, John.

Done, Ticket #6047 - about round_cast().

Would you like a ticket for the following round_to as well?
template < class T >
T round_to( const T& x, const T& order )
{
 return round( x / order ) * order;
}

I'm still not sure if: can r > boost::integer_traits<R>::const_max be true,
and still static_cast<R>(r) == boost::integer_traits<R>::const_max?

Regards,
Kris


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