Subject: Re: [boost] [rational] Can the community maintenance team and/or rational users please review some pull requests?
From: John Maddock (jz.maddock_at_[hidden])
Date: 2015-03-30 14:15:35
> If I understand correctly, cpp_rational is constructible from double
> but rational isn't? It is documented, so it's ok, but it may still
> confuse some users.
Correct. Conversion works in the multiprecision case because someone
asked for it, and the integers are large enough that we shouldn't have
to worry about overflow etc. In the non-multiprecision case, there are
plenty of doubles which can't be converted to a rational of (built in)
integers. And of course (possibly 128 bit) long doubles are even more
of an issue.
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk