
1 Apr
2015
1 Apr
'15
12:40 p.m.
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. John.