2 Apr
2015
2 Apr
'15
3:38 a.m.
On Wed, Apr 1, 2015 at 5:40 AM, John Maddock
That is incorrect rational is (inadvertently) constructible from double.
Check it out (with 1.57):
#include
int main() { boost::rational<int> r = 2.5; assert (boost::rational<int>(2) == r); }
With an unfortunate results. This is a serious bug.
Correct: that is the whole point of this proposed change - to fix that bug.
I have achieved write permissions on Boost.Rational. (about two hours ago). I merged requests #1, #2, #3. -- Marshall